summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2019-05-11 20:27:42 +0200
committerBjørn Mork <bjorn@mork.no>2019-05-11 20:27:42 +0200
commit56af769f3a02791d67d367a2dc1187d1bc61d1c8 (patch)
tree05ab2510213be8113f9c227ce7bd9865a1abe65b
parent0f326c1de7d31c461118a4f124583365a6426be8 (diff)
add a simple Makefile to create an alternate /opt file system
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8a7381f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright(c) 2019 Bjørn Mork <bjorn@mork.no>
+
+FILES=version opt.local
+
+all: opt.squashfs
+
+version: dcs8000lh-configure.py
+ sed -ne 's/"//g' -e 's/^VERSION *= *//p' dcs8000lh-configure.py >$@
+
+opt.squashfs: $(FILES)
+ mksquashfs $(FILES) $@ -all-root -comp xz