use target nm instead of host nm for ar7 images (#936)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 8 Nov 2006 14:28:49 +0000 (14:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 8 Nov 2006 14:28:49 +0000 (14:28 +0000)
SVN-Revision: 5473

target/image/ar7/Makefile

index d2af2d9a8156c224ea00d0330abae49fa57adbed..bcdef970cfb8ba05ce1ec9e6c6ddd20482f2720f 100644 (file)
@@ -57,7 +57,7 @@ endef
 define Image/Prepare
        cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
        $(TARGET_CROSS)ld -T $(PKG_BUILD_DIR)/zimage.script -r -b binary $(KDIR)/vmlinux.lzma -o $(KDIR)/zimage.o
-       $(TARGET_CROSS)ld -static -G 0 --defsym kernel_entry=0x$${shell nm $(KDIR)/linux-*/vmlinux | grep kernel_entry | cut -d' ' -f1} -T $(PKG_BUILD_DIR)/ld.script \
+       $(TARGET_CROSS)ld -static -G 0 --defsym kernel_entry=0x$${shell $(TARGET_CROSS)nm $(KDIR)/linux-*/vmlinux | grep kernel_entry | cut -d' ' -f1} -T $(PKG_BUILD_DIR)/ld.script \
                $(PKG_BUILD_DIR)/loader.o \
                $(PKG_BUILD_DIR)/LzmaDecode.o \
                $(KDIR)/zimage.o \