aboutsummaryrefslogtreecommitdiff
path: root/package/mtd/mtd.mk
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <jacmet@sunsite.dk>2012-10-11 15:35:27 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2012-10-11 15:35:27 +0200
commit6e280b75341cd616970ce5559a7725201f6c0c53 (patch)
tree82f44b86f9e8b4727fdd2962593a28e889007a41 /package/mtd/mtd.mk
parent387c5e2e6ba6aa7d626be868dfa3a29fd7f06ac9 (diff)
downloadbuildroot-6e280b75341cd616970ce5559a7725201f6c0c53.tar.gz
buildroot-6e280b75341cd616970ce5559a7725201f6c0c53.tar.bz2
mtd: fixup after CPPFLAGS addition
Fixes http://autobuild.buildroot.net/results/c55e4c9741109c66f8f66ab7e3f4f1664826056a mtd appends to CFLAGS/CPPFLAGS, but doesn't use override - So we need to pass flags in the environment and not on the make command line to get the combination of our flags and mtd's. At the same time cleanup the host build to use a similar form (HOST_CONFIGURE_OPTS) as target build. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/mtd/mtd.mk')
-rw-r--r--package/mtd/mtd.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index 7e3a9b8866..aef478f8df 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -20,9 +20,8 @@ endif
HOST_MTD_DEPENDENCIES = host-zlib host-lzo host-e2fsprogs
define HOST_MTD_BUILD_CMDS
- CC="$(HOSTCC)" CFLAGS="$(HOST_CFLAGS)" LDFLAGS="$(HOST_LDFLAGS)" \
- CROSS= $(MAKE1) BUILDDIR=$(@D) \
- WITHOUT_XATTR=1 -C $(@D)
+ $(HOST_CONFIGURE_OPTS) $(MAKE1) \
+ CROSS= BUILDDIR=$(@D) WITHOUT_XATTR=1 -C $(@D)
endef
define HOST_MTD_INSTALL_CMDS
@@ -75,7 +74,7 @@ MTD_TARGETS_y += $(addprefix ubi-utils/,$(MTD_TARGETS_UBI_y))
ifneq ($(MTD_TARGETS_y),)
define MTD_BUILD_CMDS
- $(MAKE1) $(TARGET_CONFIGURE_OPTS) CROSS=$(TARGET_CROSS) \
+ $(TARGET_CONFIGURE_OPTS) $(MAKE1) CROSS=$(TARGET_CROSS) \
BUILDDIR=$(@D) WITHOUT_XATTR=1 WITHOUT_LARGEFILE=1 -C $(@D) \
$(addprefix $(@D)/,$(MTD_TARGETS_y))
endef