diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-12-01 09:18:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-12-01 09:18:41 +0000 |
commit | e59bc5c038f0636ea36886caf99fc6f861469a5d (patch) | |
tree | 4318c1804b155e7e3ed098360427b2e9df7d1d39 | |
parent | 574a82f0e3b310b96106b76499901f2103ec9ce9 (diff) | |
download | alpine-iso-e59bc5c038f0636ea36886caf99fc6f861469a5d.tar.bz2 alpine-iso-e59bc5c038f0636ea36886caf99fc6f861469a5d.tar.xz |
fix RPI release
-rwxr-xr-x | Makefile | 38 |
1 files changed, 25 insertions, 13 deletions
@@ -348,15 +348,6 @@ isofs: $(ISOFS_DIRSTAMP) iso: $(ISO) # -# SHA1 sum of ISO -# -SHA1 := $(ISO).sha1 -SHA256 := $(ISO).sha256 -SHA512 := $(ISO).sha512 - -$(SHA1) $(SHA256) $(SHA512): $(ISO) - -# # .pkgdiff # previous := $(shell cat previous 2>/dev/null) @@ -382,6 +373,8 @@ $(xdelta): $(PREV_ISO) $(ISO) xdelta: $(xdelta) +all-release: previous + endif ifeq ($(ALPINE_ARCH),armhf) @@ -417,7 +410,21 @@ $(RPI_TAR_GZ): $(ALL_MODLOOP) $(ALL_INITFS) $(ALL_ISO_KERNEL) $(ISO_REPOS_DIRSTA echo -en "disable_splash=1\nboot_delay=0\nkernel=vmlinuz-$(KERNEL_FLAVOR)\ninitramfs $(subst %,$(KERNEL_FLAVOR),$(INITFS_NAME)) 0x00a00000\n" > $(RPI_TEMP)/config.txt tar czf $(RPI_TAR_GZ) -C "$(RPI_TEMP)" . -rpi: $(RPI_TAR_GZ) +release_targets := $(RPI_TAR_GZ) +SHA1 := $(RPI_TAR_GZ).sha1 +SHA256 := $(RPI_TAR_GZ).sha256 +SHA512 := $(RPI_TAR_GZ).sha512 + +$(SHA1) $(SHA256) $(SHA512): $(RPI_TAR_GZ) + +else + +release_targets := $(ISO) $(pkgdiff) $(xdelta) +SHA1 := $(ISO).sha1 +SHA256 := $(ISO).sha256 +SHA512 := $(ISO).sha512 + +$(SHA1) $(SHA256) $(SHA512): $(ISO) endif @@ -440,14 +447,19 @@ sha512: $(SHA512) # releases # -release: $(CHECKSUMS) $(xdelta) $(pkgdiff) +release_targets += $(CHECKSUMS) +release: $(release_targets) +ifeq ($(ALPINE_ARCH),armhf) +profiles ?= alpine-rpi +else ifeq ($(ALPINE_ARCH),x86_64) profiles ?= alpine alpine-mini alpine-vanilla alpine-xen else profiles ?= alpine alpine-mini alpine-vanilla endif +endif current = $(shell cat current 2>/dev/null) @@ -456,7 +468,7 @@ current: @test -n "$(ALPINE_RELEASE)" @echo $(ALPINE_RELEASE) > $@ -all-release: current previous $(addsuffix .conf.mk, $(profiles)) +all-release: current $(addsuffix .conf.mk, $(profiles)) @echo "*" @echo "* Making $(current) releases" @echo "*" @@ -469,7 +481,7 @@ all-release: current previous $(addsuffix .conf.mk, $(profiles)) PROFILE=$$i release || break; \ done -edge desktop mini xen vanilla: current +edge desktop mini xen vanilla rpi: current @fakeroot $(MAKE) ALPINE_RELEASE=$(current) PROFILE=alpine-$@ sha1 .PRECIOUS: $(MODLOOP_KERNELSTAMP) $(MODLOOP_DIRSTAMP) $(INITFS_DIRSTAMP) $(INITFS) $(ISO_KERNEL_STAMP) |