浏览代码

use HOSTCFLAGS, avoid object file generation

Waldemar Brodkorb 15 年之前
父节点
当前提交
c164968b0c
共有 4 个文件被更改,包括 3 次插入5 次删除
  1. 1 1
      target/tools/mkfimage/Makefile
  2. 二进制
      target/tools/mkfimage/mkfimage
  3. 1 1
      target/tools/trx/Makefile
  4. 1 3
      target/tools/uboot-mkimage/Makefile

+ 1 - 1
target/tools/mkfimage/Makefile

@@ -1,4 +1,4 @@
 include $(TOPDIR)/rules.mk
 
 all:
-	$(HOSTCC) -o ${STAGING_HOST_DIR}/bin/mkfimage mkfimage.c
+	$(HOSTCC) ${HOSTCFLAGS} -o ${STAGING_HOST_DIR}/bin/mkfimage mkfimage.c

二进制
target/tools/mkfimage/mkfimage


+ 1 - 1
target/tools/trx/Makefile

@@ -1,4 +1,4 @@
 include $(TOPDIR)/rules.mk
 
 all:
-	$(HOSTCC) -o ${STAGING_HOST_DIR}/bin/trx trx.c
+	$(HOSTCC) ${HOSTCFLAGS} -o ${STAGING_HOST_DIR}/bin/trx trx.c

+ 1 - 3
target/tools/uboot-mkimage/Makefile

@@ -1,6 +1,4 @@
 include $(TOPDIR)/rules.mk
 
 all:
-	$(HOSTCC) -c crc32.c -o crc32.o
-	$(HOSTCC) -c mkimage.c -o mkimage.o
-	$(HOSTCC) -o ${STAGING_HOST_DIR}/bin/mkimage mkimage.o crc32.o
+	$(HOSTCC) ${HOSTCFLAGS} -o ${STAGING_HOST_DIR}/bin/mkimage mkimage.c crc32.c