mtd-utils: fix build with external toolchain

Reported by H Hartley Sweeten.

Make sure we pass proper CFLAGS to mtd-utils, so builds needing --sysroot
works (E.G. external toolchains).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2010-03-08 22:44:28 +01:00
parent c9d195ed84
commit d5bf5f9670
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
X.org updated to 7.5.
Updated/fixed packages: dosfstools, e2fsprogs, squashfs
Updated/fixed packages: dosfstools, e2fsprogs, mtd-utils, squashfs
2010.02, Release February 26th, 2010:

View File

@ -111,14 +111,14 @@ MTD_BUILD_TARGETS := $(MTD_TARGETS) $(MTD_UBI_TARGETS)
$(MTD_BUILD_TARGETS): $(MTD_DIR)/.unpacked
ifneq ($(MTD_TARGETS),)
$(MAKE) LDFLAGS="$(TARGET_LDFLAGS)" \
$(MAKE) $(TARGET_CONFIGURE_ENV) \
BUILDDIR=$(MTD_DIR) \
CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) \
WITHOUT_XATTR=1 WITHOUT_LARGEFILE=1 \
-C $(MTD_DIR) $(MTD_TARGETS)
endif
ifneq ($(MTD_UBI_TARGETS),)
$(MAKE) LDFLAGS="$(TARGET_LDFLAGS)" \
$(MAKE) $(TARGET_CONFIGURE_ENV) \
BUILDDIR=$(MTD_DIR)/ubi-utils \
CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) \
WITHOUT_XATTR=1 WITHOUT_LARGEFILE=1 \