Helpful targets

This commit is contained in:
Trammell hudson 2018-02-13 13:20:04 -05:00
parent 2395ae78b0
commit e0d390c62d
No known key found for this signature in database
GPG Key ID: 687A5005935B1533
2 changed files with 14 additions and 1 deletions

View File

@ -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) $@

View File

@ -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