mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +00:00
Helpful targets
This commit is contained in:
parent
2395ae78b0
commit
e0d390c62d
6
Makefile
6
Makefile
@ -107,6 +107,10 @@ else
|
||||
$(error "$(BOARD): neither CONFIG_COREBOOT nor CONFIG_LINUXBOOT is set?")
|
||||
endif
|
||||
|
||||
# helpful targets for common uses
|
||||
linux: $(build)/$(BOARD)/bzImage
|
||||
cpio: $(build/$(BOARD)/initrd.cpio.xz
|
||||
|
||||
# Disable all built in rules
|
||||
.SUFFIXES:
|
||||
FORCE:
|
||||
@ -482,7 +486,7 @@ $(eval $(shell echo >&2 "$(DATE) Wrong make detected: $(LOCAL_MAKE_VERSION)"))
|
||||
HEADS_MAKE := $(build)/$(make_dir)/make
|
||||
|
||||
# Once we have a proper Make, we can just pass arguments into it
|
||||
all bootstrap: $(HEADS_MAKE)
|
||||
all bootstrap linux cpio: $(HEADS_MAKE)
|
||||
LANG=C MAKE=$(HEADS_MAKE) $(HEADS_MAKE) $@
|
||||
%.clean %.intermediate %.vol: $(HEADS_MAKE)
|
||||
LANG=C MAKE=$(HEADS_MAKE) $(HEADS_MAKE) $@
|
||||
|
@ -52,6 +52,15 @@ coreboot.intermediate: $(build)/$(BOARD)/bzImage
|
||||
coreboot.intermediate: $(build)/$(BOARD)/initrd.cpio.xz
|
||||
endif
|
||||
|
||||
#
|
||||
# Helpful target for reconfiguring the coreboot target
|
||||
#
|
||||
coreboot.menuconfig:
|
||||
$(MAKE) \
|
||||
-C "$(build)/$(coreboot_dir)" \
|
||||
DOTCONFIG="../../$(CONFIG_COREBOOT_CONFIG)" \
|
||||
menuconfig
|
||||
|
||||
|
||||
# if we are not building from a git checkout,
|
||||
# we must also download the coreboot-blobs tree
|
||||
|
Loading…
x
Reference in New Issue
Block a user