]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - nand_spl/board/freescale/p1023rds/Makefile
nand_spl: fix u-boot.lst breakage
[karo-tx-uboot.git] / nand_spl / board / freescale / p1023rds / Makefile
index b2882844b3b470f5de253ca2608ee2d12426eb19..7a87cf621e78cf50bd1638beb858b006406bf619 100644 (file)
@@ -63,7 +63,8 @@ $(nandobj)u-boot-spl: $(OBJS) $(nandobj)u-boot-nand_spl.lds
 # $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
 $(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
 $(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
-       $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
+       $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(nandobj)/board/$(BOARDDIR) \
+               -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files