From b436b1cc9fca12fbeed28f1dc6c8b58d5b379d0f Mon Sep 17 00:00:00 2001 From: Kalle Vahlman Date: Wed, 23 Nov 2011 07:06:12 +0200 Subject: igloo-20111118 release --- Makefile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Makefile 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) -- cgit v1.2.3