diff --git a/boards/talos-2/talos-2.config b/boards/talos-2/talos-2.config index 7de53584..d4e98a25 100644 --- a/boards/talos-2/talos-2.config +++ b/boards/talos-2/talos-2.config @@ -50,20 +50,4 @@ export CONFIG_BOOT_DEV="/dev/nvme0n1p2" export CONFIG_BOARD_NAME="Talos 2" export CONFIG_FLASHROM_OPTIONS="--noverify-all -p linux_mtd" -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 +BOARD_TARGETS := ppc_tgz diff --git a/targets/ppc_tgz.mk b/targets/ppc_tgz.mk new file mode 100644 index 00000000..c1725488 --- /dev/null +++ b/targets/ppc_tgz.mk @@ -0,0 +1,17 @@ +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