summaryrefslogtreecommitdiff
path: root/examples/api
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-02-04 17:24:14 +0900
committerTom Rini <trini@ti.com>2014-02-19 11:07:50 -0500
commit5651ccffa4aa8ac36961f376927df253b7d0c035 (patch)
tree67b9fbbd04f28b25a07ee4de4c8ea464f0622ed6 /examples/api
parenta0b14c3f0a94ecb4d8210a249d25fdf37185f39b (diff)
downloadu-boot-imx-5651ccffa4aa8ac36961f376927df253b7d0c035.zip
u-boot-imx-5651ccffa4aa8ac36961f376927df253b7d0c035.tar.gz
u-boot-imx-5651ccffa4aa8ac36961f376927df253b7d0c035.tar.bz2
Makfile: move suffix rules to Makefile.build
This commit moves suffix rules from config.mk to scripts/Makefile.build, which will allow us to switch smoothly to real Kbuild. Note1: post/lib_powerpc/fpu/Makefile has its own rule to compile C sources. We need to tweak it to keep the same behavior. Note2: There are two file2 with the same name: arch/arm/lib/crt0.S and eamples/api/crt0.S. To keep the same build behavior, examples/api/Makefile also has to be treaked. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'examples/api')
-rw-r--r--examples/api/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile
index f770859..52f4368 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -50,9 +50,9 @@ $(obj)demo.bin: $(obj)demo
$(OBJCOPY) -O binary $< $@ 2>/dev/null
# Rule to build generic library C files
-$(obj)%.o: $(SRCTREE)/lib/%.c
+$(addprefix $(obj),$(notdir $(EXT_COBJ_FILES-y))): $(obj)%.o: $(SRCTREE)/lib/%.c
$(CC) -g $(CFLAGS) -c -o $@ $<
# Rule to build architecture-specific library assembly files
-$(obj)%.o: $(SRCTREE)/arch/$(ARCH)/lib/%.S
+$(addprefix $(obj),$(notdir $(EXT_SOBJ_FILES-y))): $(obj)%.o: $(SRCTREE)/arch/$(ARCH)/lib/%.S
$(CC) -g $(CFLAGS) -c -o $@ $<