mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
add config, git hash and phase out the Makefile.nerf
This commit is contained in:
parent
12185e0a28
commit
982256df60
10
Makefile
10
Makefile
@ -1,3 +1,5 @@
|
||||
-include .config
|
||||
|
||||
modules-y :=
|
||||
pwd := $(shell pwd)
|
||||
packages := $(pwd)/packages
|
||||
@ -13,6 +15,10 @@ MAKE_JOBS ?= -j$(CPUS) --max-load 16
|
||||
# Create the log directory if it doesn't already exist
|
||||
BUILD_LOG := $(shell [ -d "$(log_dir)" ] || mkdir -p "$(log_dir)")
|
||||
|
||||
# Some things want usernames, we use the current checkout
|
||||
# so that they are reproducible
|
||||
GIT_HASH := $(shell git rev-parse HEAD)
|
||||
|
||||
# Timestamps should be in ISO format
|
||||
DATE=`date --rfc-3339=seconds`
|
||||
|
||||
@ -90,7 +96,7 @@ CROSS_TOOLS := \
|
||||
ifeq "$(CONFIG_COREBOOT)" "y"
|
||||
all: $(BOARD).rom
|
||||
else
|
||||
all: nerf-$(BOARD).rom
|
||||
all: linux.intermediate initrd.cpio.xz
|
||||
endif
|
||||
|
||||
# Disable all built in rules
|
||||
@ -451,8 +457,6 @@ bootstrap:
|
||||
musl-cross.intermediate \
|
||||
$(build)/$(coreboot_dir)/util/crossgcc/xgcc/bin/i386-elf-gcc \
|
||||
|
||||
include Makefile.nerf
|
||||
|
||||
else
|
||||
# Wrong make version detected -- build our local version
|
||||
# and re-invoke the Makefile with it instead.
|
||||
|
Loading…
Reference in New Issue
Block a user