mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 12:46:26 +00:00
12a099ad8e
Move the targets generating talos-2's tgz update package to targets. While this wasn't duplicated, it breaks a cyclic dependency between board config and BRAND_NAME by moving the ROM output name dependencies later. The logic probably would be shared with similar boards if any were supported, so it is in the spirit of the other targets/ shared target Makefiles. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
18 lines
658 B
Makefile
18 lines
658 B
Makefile
OUTPUT_PREFIX := heads-$(BOARD)-$(HEADS_GIT_VERSION)
|
|
BUNDLED_LINUX := $(OUTPUT_PREFIX)-zImage.bundled
|
|
OUTPUT_FILES := $(CB_OUTPUT_FILE) $(CB_BOOTBLOCK_FILE) $(BUNDLED_LINUX)
|
|
|
|
all: $(board_build)/$(BUNDLED_LINUX)
|
|
$(board_build)/$(BUNDLED_LINUX): $(board_build)/zImage.bundled
|
|
$(call do-copy,$<,$@)
|
|
|
|
all: $(board_build)/$(OUTPUT_PREFIX).tgz
|
|
$(board_build)/$(OUTPUT_PREFIX).tgz: \
|
|
$(addprefix $(board_build)/,$(OUTPUT_FILES))
|
|
rm -rf $(board_build)/pkg # cleanup in case directory exists
|
|
mkdir $(board_build)/pkg
|
|
cp $^ $(board_build)/pkg
|
|
cd $(board_build)/pkg && sha256sum * > sha256sum.txt
|
|
cd $(board_build)/pkg && tar zcf $@ *
|
|
rm -r $(board_build)/pkg
|