History

Build rootfs via makefile

Michael Aldridge committed 9 years ago

Commit 03abfc21 parent 3e5c8d41 file · +26 −1Browse files

Unified · Split

Makefile+26−1
@@ -1,8 +1,18 @@
11 GITVER := $(shell git rev-parse --short HEAD)
22 VERSION = 0.22
3−
43 SHIN += $(shell find -type f -name '*.sh.in')
54 SCRIPTS += $(SHIN:.sh.in=.sh)
5+DATE=$(shell date "+%Y%m%d")
6+
7+T_IMAGES=rpi{,2,3}{,-musl} beaglebone{,-musl} cubieboard2{,-musl} odroid-c2{,-musl} usbarmory{,-musl}
8+T_ARCHS=i686 x86_64{,-musl} armv{6,7}l{,-musl}
9+
10+
11+ARCHS=$(shell echo $(T_ARCHS))
12+IMAGES=$(shell echo $(T_IMAGES))
13+ALL_ROOTFS=$(foreach arch,$(ARCHS),void-$(arch)-ROOTFS-$(DATE).tar.xz)
14+
15+SUDO := sudo
616
717 %.sh: %.sh.in
818 sed -e "s|@@MKLIVE_VERSION@@|$(VERSION) $(GITVER)|g" $^ > $@
@@ -10,3 +20,18 @@ SCRIPTS += $(SHIN:.sh.in=.sh) · 1 unmodified line
1020
1121 all: $(SCRIPTS)
1222
23+clean:
24+ rm -v *.sh
25+
26+images:
27+ echo $(IMAGES)
28+
29+rootfs-all: $(ALL_ROOTFS)
30+
31+rootfs-all-print:
32+ echo $(ALL_ROOTFS)
33+
34+void-%-ROOTFS-$(DATE).tar.xz:
35+ $(SUDO) ./mkrootfs.sh $*
36+
37+.PHONY: clean rootfs-all rootfs-all-print

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t