summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-05-19 16:13:45 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-20 13:16:56 +0200
commitff047395b9746aee1fe24e9c3f122c3706e72781 (patch)
treea8718b43f9d97c8bd0ad9a351ce23e35d5840851 /lib
parentc6aea1e9a377de5e67ce5c71d7487525af633a0b (diff)
downloadbarebox-ff047395b9746aee1fe24e9c3f122c3706e72781.tar.gz
barebox-ff047395b9746aee1fe24e9c3f122c3706e72781.tar.xz
kbuild: rename pbl object pbl-*.o to *.pbl.o
Currently, pbl objects are output to: <directory-path>/pbl-<basename>.o This commit changes as follows: <directory-path>/<basename>.pbl.o The motivation is not only to get rid of the ugly code introduced by commit 257abdaa36c8 ("Do not rm the path from pbl-y target"), but also to make it easier to remove obj-dtb-y, pbl-dtb-y, lwl-dtb-y syntax in the next commit. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 56040a0d5f..f370d167b7 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -86,8 +86,7 @@ UBSAN_SANITIZE_ubsan.o := n
libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \
fdt_empty_tree.o
$(foreach file, $(libfdt_files), \
- $(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt))
-$(foreach file, $(libfdt_files), \
- $(eval CFLAGS_pbl-$(file) = -I $(srctree)/scripts/dtc/libfdt))
+ $(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt) \
+ $(eval CFLAGS_$(file:%.o=%.pbl.o) = -I $(srctree)/scripts/dtc/libfdt))
obj-pbl-$(CONFIG_LIBFDT) += $(libfdt_files)