diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-28 17:21:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-28 17:21:07 +0000 |
commit | 81f8737a6aa13c1d6944f061a1f21e5549ff4003 (patch) | |
tree | 5af97a310a23e35b972912c61dbafefd4985ff72 /alpine.mk | |
parent | b4aafba38f6dc1f0b978bc2319e775fccf586452 (diff) | |
download | abuild-81f8737a6aa13c1d6944f061a1f21e5549ff4003.tar.gz abuild-81f8737a6aa13c1d6944f061a1f21e5549ff4003.tar.bz2 abuild-81f8737a6aa13c1d6944f061a1f21e5549ff4003.tar.xz abuild-81f8737a6aa13c1d6944f061a1f21e5549ff4003.zip |
alpine.mk, initramfs: show alpine release
Read the version from .alpine-release on media. Also display the init
script version.
Diffstat (limited to 'alpine.mk')
-rwxr-xr-x[-rw-r--r--] | alpine.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/alpine.mk b/alpine.mk index 5498f42..7fad019 100644..100755 --- a/alpine.mk +++ b/alpine.mk @@ -2,10 +2,14 @@ -include alpine.conf.mk -ISO ?= alpine-test.iso +BUILD_DATE := $(shell date +%y%m%d) +ALPINE_RELEASE ?= $(BUILD_DATE) +ALPINE_NAME ?= alpine-test DESTDIR ?= $(shell pwd)/isotmp APKDIRS ?= ../aports/core/*/ +ISO ?= $(ALPINE_NAME)-$(ALPINE_RELEASE).iso +ISO_LINK ?= $(ALPINE_NAME).iso ISO_DIR := $(DESTDIR)/isofs find_apk = $(firstword $(wildcard $(addprefix $(APKDIRS),$(1)-[0-9]*.apk))) @@ -186,6 +190,8 @@ $(ISO_KERNEL): $(KERNEL_APK) $(ISO): $(MODLOOP) $(INITFS) $(ISOLINUX_CFG) $(ISOLINUX_BIN) $(ISO_KERNEL) $(ISO_APKS) @echo "==> iso: building $(notdir $(ISO))" + @echo "$(ALPINE_NAME)-$(ALPINE_RELEASE) $(BUILD_DATE)" \ + > $(ISO_DIR)/.alpine-release @genisoimage -o $(ISO) -l -J -R \ -b isolinux/isolinux.bin \ -c isolinux/boot.cat \ @@ -194,4 +200,5 @@ $(ISO): $(MODLOOP) $(INITFS) $(ISOLINUX_CFG) $(ISOLINUX_BIN) $(ISO_KERNEL) $(ISO -boot-info-table \ -quiet \ $(ISO_DIR) + @ln -fs $@ $(ISO_LINK) |