Makefile: Update payload clean targets
Move payload clean targets into payloads/Makefile.inc Add clean targets for coreinfo, nvramcui, Memtest86+ Change-Id: I70c13582311dfba3e309805053159f8a039cb109 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/13940 Tested-by: build bot (Jenkins) Reviewed-by: Ben Gardner <gardner.ben@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
0fcd6f912b
commit
679755778b
3
Makefile
3
Makefile
|
@ -132,6 +132,7 @@ endif
|
||||||
|
|
||||||
ifeq ($(NOCOMPILE),1)
|
ifeq ($(NOCOMPILE),1)
|
||||||
include $(TOPLEVEL)/Makefile.inc
|
include $(TOPLEVEL)/Makefile.inc
|
||||||
|
include $(TOPLEVEL)/payloads/Makefile.inc
|
||||||
real-all: config
|
real-all: config
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -321,7 +322,7 @@ clean-cscope:
|
||||||
clean-ctags:
|
clean-ctags:
|
||||||
rm -f tags
|
rm -f tags
|
||||||
|
|
||||||
distclean: clean clean-ctags clean-cscope
|
distclean: clean clean-ctags clean-cscope distclean-payloads
|
||||||
rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig* .ccwrap .xcompile
|
rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig* .ccwrap .xcompile
|
||||||
|
|
||||||
.PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean doxygen doxy doxygen_simple
|
.PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean doxygen doxy doxygen_simple
|
||||||
|
|
|
@ -449,7 +449,7 @@ $(objgenerated)/libverstage.a: $$(libverstage-objs)
|
||||||
clean-abuild:
|
clean-abuild:
|
||||||
rm -rf coreboot-builds
|
rm -rf coreboot-builds
|
||||||
|
|
||||||
clean-for-update-target:
|
clean-for-update-target: clean-payloads
|
||||||
rm -f $(obj)/ramstage?* $(obj)/coreboot.romstage $(obj)/coreboot.pre* $(obj)/coreboot.bootblock $(obj)/coreboot.a
|
rm -f $(obj)/ramstage?* $(obj)/coreboot.romstage $(obj)/coreboot.pre* $(obj)/coreboot.bootblock $(obj)/coreboot.a
|
||||||
rm -rf $(obj)/bootblock?* $(obj)/romstage?* $(obj)/location.*
|
rm -rf $(obj)/bootblock?* $(obj)/romstage?* $(obj)/location.*
|
||||||
rm -f $(obj)/option_table.* $(obj)/crt0.S $(obj)/ldscript
|
rm -f $(obj)/option_table.* $(obj)/crt0.S $(obj)/ldscript
|
||||||
|
@ -458,8 +458,6 @@ clean-for-update-target:
|
||||||
rm -f $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc
|
rm -f $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc
|
||||||
rm -f $(obj)/mainboard/$(MAINBOARDDIR)/bootblock.* $(obj)/dsdt.*
|
rm -f $(obj)/mainboard/$(MAINBOARDDIR)/bootblock.* $(obj)/dsdt.*
|
||||||
rm -f $(obj)/cpu/x86/smm/smm_bin.c $(obj)/cpu/x86/smm/smm.* $(obj)/cpu/x86/smm/smm
|
rm -f $(obj)/cpu/x86/smm/smm_bin.c $(obj)/cpu/x86/smm/smm.* $(obj)/cpu/x86/smm/smm
|
||||||
$(MAKE) -C payloads/external/SeaBIOS -f Makefile.inc clean
|
|
||||||
$(MAKE) -C payloads/external/U-Boot -f Makefile.inc clean
|
|
||||||
|
|
||||||
clean-target:
|
clean-target:
|
||||||
rm -f $(obj)/coreboot*
|
rm -f $(obj)/coreboot*
|
||||||
|
|
|
@ -19,3 +19,20 @@ img/coreinfo-type := payload
|
||||||
|
|
||||||
payloads/coreinfo/build/coreinfo.elf coreinfo:
|
payloads/coreinfo/build/coreinfo.elf coreinfo:
|
||||||
$(MAKE) -C payloads/coreinfo defaultbuild
|
$(MAKE) -C payloads/coreinfo defaultbuild
|
||||||
|
|
||||||
|
clean-payloads:
|
||||||
|
$(MAKE) -C payloads/coreinfo clean
|
||||||
|
$(MAKE) -C payloads/libpayload clean
|
||||||
|
$(MAKE) -C payloads/external/SeaBIOS -f Makefile.inc clean
|
||||||
|
$(MAKE) -C payloads/external/U-Boot -f Makefile.inc clean
|
||||||
|
$(MAKE) -C payloads/external/Memtest86Plus -f Makefile.inc clean
|
||||||
|
|
||||||
|
|
||||||
|
distclean-payloads:
|
||||||
|
$(MAKE) -C payloads/coreinfo distclean
|
||||||
|
$(MAKE) -C payloads/libpayload distclean
|
||||||
|
$(MAKE) -C payloads/external/SeaBIOS -f Makefile.inc distclean
|
||||||
|
$(MAKE) -C payloads/external/U-Boot -f Makefile.inc distclean
|
||||||
|
$(MAKE) -C payloads/external/Memtest86Plus -f Makefile.inc distclean
|
||||||
|
|
||||||
|
.phony: clean-payloads distclean-payloads
|
||||||
|
|
Loading…
Reference in New Issue