From fd18408048df162a23c6b28f7196c8e99e6df085 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Wed, 4 Dec 2013 18:00:23 +0100
Subject: fix xbmc compile

---
 package/xbmc/patches/patch-configure_in | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 package/xbmc/patches/patch-configure_in

diff --git a/package/xbmc/patches/patch-configure_in b/package/xbmc/patches/patch-configure_in
new file mode 100644
index 000000000..502ee03c0
--- /dev/null
+++ b/package/xbmc/patches/patch-configure_in
@@ -0,0 +1,11 @@
+--- xbmc-12.2.orig/configure.in	2013-05-03 07:57:40.000000000 +0200
++++ xbmc-12.2/configure.in	2013-12-04 11:36:43.000000000 +0100
+@@ -876,7 +876,7 @@ if test "$use_gles" = "yes"; then
+       AC_DEFINE([HAVE_LIBEGL],[1],["Define to 1 if you have the `EGL' library (-lEGL)."])
+       AC_DEFINE([HAVE_LIBGLESV2],[1],["Define to 1 if you have the `GLESv2' library (-lGLESv2)."])
+       AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
+-      LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm"
++      LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lkhrn_static -lpthread -lm"
+     else
+       AC_CHECK_LIB([EGL],   [main],, AC_MSG_ERROR($missing_library))
+       AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))
-- 
cgit v1.2.3


From df5c8cb4c8f3339ea884b0b572767ec6bcd3d006 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Thu, 5 Dec 2013 16:11:39 +0100
Subject: add release target, to just build one system

---
 Makefile    |  3 +++
 mk/build.mk | 12 ++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/Makefile b/Makefile
index 2658c12dd..7a01e93d9 100644
--- a/Makefile
+++ b/Makefile
@@ -146,6 +146,9 @@ allmodconfig: .prereq_done
 package_index: .prereq_done
 	@${GMAKE_INV} package_index
 
+release: .prereq_done
+	@${GMAKE_INV} release
+
 bulk: .prereq_done
 	@${GMAKE_INV} bulk
 
diff --git a/mk/build.mk b/mk/build.mk
index f5d62460f..a6c5a7646 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -562,6 +562,18 @@ bulktoolchain:
 		if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
 	done
 
+release:
+	for libc in uclibc eglibc glibc musl;do \
+		mkdir -p $(TOPDIR)/bin/$(SYSTEM)_$(ARCH)_$$libc; \
+		( \
+			echo === building $$libc on $$(date); \
+			$(GMAKE) prereq && \
+			$(GMAKE) ARCH=$(ARCH) SYSTEM=$(SYSTEM) LIBC=$$libc FS=archive allmodconfig; \
+			$(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
+			rm .config; \
+		) 2>&1 | tee $(TOPDIR)/bin/$(SYSTEM)_$(ARCH)_$$libc/build.log; \
+	done
+
 # build all target architecture, target systems and libc combinations
 bulk:
 	for libc in uclibc eglibc glibc musl;do \
-- 
cgit v1.2.3


From 234f96e6a69ef49514165fff6e3771b605f5304c Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Thu, 5 Dec 2013 16:15:41 +0100
Subject: break out on first error

---
 mk/build.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mk/build.mk b/mk/build.mk
index a6c5a7646..3b1ae662d 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -572,6 +572,7 @@ release:
 			$(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
 			rm .config; \
 		) 2>&1 | tee $(TOPDIR)/bin/$(SYSTEM)_$(ARCH)_$$libc/build.log; \
+		if [ -f .exit ];then break;fi \
 	done
 
 # build all target architecture, target systems and libc combinations
-- 
cgit v1.2.3


From df3ac593de8bdd2d62437a6104aad455d5f042d3 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Thu, 5 Dec 2013 16:16:33 +0100
Subject: break out on first error

---
 mk/build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mk/build.mk b/mk/build.mk
index 3b1ae662d..d65877ea8 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -572,7 +572,7 @@ release:
 			$(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
 			rm .config; \
 		) 2>&1 | tee $(TOPDIR)/bin/$(SYSTEM)_$(ARCH)_$$libc/build.log; \
-		if [ -f .exit ];then break;fi \
+		if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
 	done
 
 # build all target architecture, target systems and libc combinations
-- 
cgit v1.2.3


From 9a3daeb406645a14671d8c2c6002f1095f883b88 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Thu, 5 Dec 2013 16:24:53 +0100
Subject: another try to fix build on first error

---
 mk/build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mk/build.mk b/mk/build.mk
index d65877ea8..0b3d2cc73 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -572,7 +572,7 @@ release:
 			$(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit; exit 1;fi; \
 			rm .config; \
 		) 2>&1 | tee $(TOPDIR)/bin/$(SYSTEM)_$(ARCH)_$$libc/build.log; \
-		if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; exit 1;fi \
+		if [ -f .exit ];then echo "Bulk build failed!"; rm .exit; break;fi \
 	done
 
 # build all target architecture, target systems and libc combinations
-- 
cgit v1.2.3