package/mtd: mtd-utils: fix fec.c build (bcopy reference)
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 17 Jan 2010 23:13:59 +0000 (00:13 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 17 Jan 2010 23:13:59 +0000 (00:13 +0100)
Needs similar fix as what we already have for mtd-utils.git

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/mtd/mtd-utils/mtd.mk

index 9b114de6845695ffe523fe37400de4d2b68ec198..a1aef16ede0077fdcfdc0e67d712bd1a31c54625 100644 (file)
@@ -99,6 +99,7 @@ $(MTD_BUILD_TARGETS): $(MTD_DIR)/.unpacked
        $(MAKE) CFLAGS="-I. -I./include -I$(LINUX_HEADERS_DIR)/include -I$(STAGING_DIR)/usr/include $(TARGET_CFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS)" \
                BUILDDIR=$(MTD_DIR) \
+               CPPFLAGS="-DNEED_BCOPY -Dbcmp=memcmp" \
                CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LINUXDIR=$(LINUX26_DIR) WITHOUT_XATTR=1 -C $(MTD_DIR)
 
 MTD_TARGETS := $(addprefix $(TARGET_DIR)/usr/sbin/, $(MTD_TARGETS_y))