summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Vahlman <kalle.vahlman@movial.com>2011-11-23 07:06:12 +0200
committerKalle Vahlman <kalle.vahlman@movial.com>2011-11-23 07:06:59 +0200
commitb436b1cc9fca12fbeed28f1dc6c8b58d5b379d0f (patch)
tree39346658fd98f93e36aeeecf1b86b3ec6d0c4f83
parenteb88794b0520c32524821eae4cf583d34e8ae6fa (diff)
igloo-20111118 release
-rw-r--r--Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6145993
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,54 @@
+
+# Configuration, these need to be overridable from command line
+MANIFEST := igloo.manifest
+VERSION := $(shell date +%Y%m%d)-custom
+ROOTFS := linaro-o-ubuntu-desktop-tar-20111026-0.tar.gz
+LIT_VERSION := 2011.10
+LOCAL_DEBS := $(wildcard repo/bluez*.deb)
+
+# Default target is a full build
+release: hwpack image
+
+# Linaro image tools
+LIT=linaro-image-tools-$(LIT_VERSION)
+LMC=$(LIT)/linaro-media-create
+LHC=$(LIT)/linaro-hwpack-create
+LHR=$(LIT)/linaro-hwpack-replace
+
+$(LIT).tar.gz:
+ $(error Please download the $(LIT_VERSION) release of linaro-image-tools from https://launchpad.net/linaro-image-tools/+download)
+$(LHC): $(LIT).tar.gz
+ @echo -n Preparing linaro-image-tools...
+ @tar zxf $(LIT).tar.gz
+ @echo " done."
+
+# Hardware pack
+HWPACK=hwpack_igloo-snowball_${VERSION}_armel_supported.tar.gz
+LDEBS=$(patsubst %.deb,--local-deb %.deb, $(LOCAL_DEBS))
+
+hwpack: $(HWPACK)
+
+$(HWPACK): $(LHC)
+ $(LHC) --debug $(MANIFEST) $(VERSION) $(LDEBS)
+
+ # HACK: We need to replace some bluez packages so we get the version we want right now.
+ # --local-deb doing just that is a lie for some packages
+ $(LHR) -i -t $(HWPACK) \
+ -p repo/bluez_4.91-1ubuntu1snowball1_armel.deb \
+ -r bluez
+ $(LHR) -i -t $(HWPACK) \
+ -p repo/bluez-gstreamer_4.91-1ubuntu1snowball1_armel.deb \
+ -r bluez-gstreamer
+ $(LHR) -i -t $(HWPACK) \
+ -p repo/bluez-cups_4.91-1ubuntu1snowball1_armel.deb \
+ -r bluez-cups
+
+# Image
+
+$(ROOTFS):
+ $(error Please download the rootfs $(ROOTFS) from http://releases.linaro.org)
+
+image: snowball-lbsp-image-$(VERSION)
+
+snowball-lbsp-image-$(VERSION): $(HWPACK) $(ROOTFS)
+ $(LMC) --image-file $@ --dev snowball_emmc --hwpack $(HWPACK) --binary $(ROOTFS)