mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 17:08:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
This commit refactors cleaning targets such as clean, clobber, mrpropper, distclean with scripts/Makefile.clean. By using scripts/Makefile.clean, we can recursively descend into subdirectories and delete generated files there. We do not need add a big list of generated files to the "clean" target. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
18 lines
479 B
Makefile
18 lines
479 B
Makefile
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-y = L1.o flash.o
|
|
obj-y += init.o
|
|
obj-y += bootscript.o
|
|
|
|
$(obj)/bootscript.c: $(obj)/bootscript.image
|
|
od -t x1 -v -A x $^ | awk -f $(srctree)/$(src)/x2c.awk > $@
|
|
|
|
$(obj)/bootscript.image: $(src)/bootscript.hush
|
|
-$(OBJTREE)/tools/mkimage -A ppc -O linux -T script -C none -a 0 -e 0 -n bootscript -d $< $@
|
|
|
|
clean-files := bootscript.c bootscript.image
|