From e0d390c62d6c6508408968b61f9b9a7d27e64398 Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Tue, 13 Feb 2018 13:20:04 -0500 Subject: [PATCH] Helpful targets --- Makefile | 6 +++++- modules/coreboot | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb094d4f..0675f86a 100644 --- a/Makefile +++ b/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) $@ diff --git a/modules/coreboot b/modules/coreboot index ee95ce2a..69506086 100644 --- a/modules/coreboot +++ b/modules/coreboot @@ -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