aboutsummaryrefslogtreecommitdiff
path: root/payloads/external/tint/Makefile
diff options
context:
space:
mode:
authorAntonello Dettori <dettori.an@gmail.com>2016-05-27 23:44:47 +0200
committerMartin Roth <martinroth@google.com>2016-06-28 18:29:48 +0200
commit4f7d329caaa99814a2383872025ca1757cf4fbad (patch)
tree001d674bd8e6d8b97bb6be406ee5a4a84b61ce65 /payloads/external/tint/Makefile
parentbc141debb54c0a4b3759dce655550b2937354163 (diff)
tint: Fix tint and add Kconfig option
Fix the compiler errors with tint, improves the Makefile, adds Kconfig integration and secondary payload option. Change-Id: Ia99e30f566d5ccf0d083e52bf174970535daefc5 Signed-off-by: Antonello Dettori <dettori.an@gmail.com> Reviewed-on: https://review.coreboot.org/14989 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads/external/tint/Makefile')
-rw-r--r--payloads/external/tint/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/payloads/external/tint/Makefile b/payloads/external/tint/Makefile
new file mode 100644
index 0000000000..0fba6e71eb
--- /dev/null
+++ b/payloads/external/tint/Makefile
@@ -0,0 +1,33 @@
+project_url=http://snapshot.debian.org/archive/debian-archive/20110127T084257Z/debian/pool/main/t/tint/tint_0.03b.tar.gz
+archive_name=tint_0.03b.tar.gz
+
+unexport KCONFIG_AUTOHEADER
+unexport KCONFIG_AUTOCONFIG
+unexport KCONFIG_DEPENDENCIES
+unexport KCONFIG_SPLITCONFIG
+unexport KCONFIG_TRISTATE
+unexport KCONFIG_NEGATIVES
+
+all: tint
+
+tint: patch
+ echo " MAKE TINT "
+ $(MAKE) -C tint
+
+patch: download
+ cd tint; \
+ if [ -e debian ]; then patch -l -p1 < ../libpayload_tint.patch; fi
+
+download:
+ test -d tint || { wget $(project_url); \
+ tar -xvf $(archive_name); \
+ rm $(archive_name); \
+ mv tint-0.03b tint; }
+
+clean:
+ test -d tint && $(MAKE) -C tint clean || exit 0
+
+distclean:
+ rm -rf tint
+
+.PHONY: download patch tint clean distclean