blob: e33d8eac1d0c672d7916bd569cce57bcfb11338d [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 54698856e5602bbd9d61e855814c854a013b4840 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 22 Dec 2018 18:47:45 -0800
4Subject: [PATCH] Add OpenEmbedded cross compile case
5
Brad Bishop868407c2019-11-04 13:24:47 -05006Upstream-Status: Submitted [https://github.com/miniupnp/miniupnp/pull/410]
Brad Bishop19323692019-04-05 15:28:33 -04007Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 genconfig.sh | 11 +++++++++++
10 1 file changed, 11 insertions(+)
11
Brad Bishop19323692019-04-05 15:28:33 -040012--- a/genconfig.sh
13+++ b/genconfig.sh
Brad Bishop868407c2019-11-04 13:24:47 -050014@@ -103,6 +103,12 @@ if [ -f ../shared/tomato_version ]; then
Brad Bishop19323692019-04-05 15:28:33 -040015 OS_VERSION="Tomato $TOMATO_VER"
16 fi
17
18+# OpenEmbedded special case
19+if [ -f ./os.openembedded ]; then
20+ OS_NAME=OpenEmbedded
21+ OS_VERSION=$(cat ./os.openembedded)
22+fi
23+
24 ${RM} ${CONFIGFILE}
25
26 echo "/* MiniUPnP Project" >> ${CONFIGFILE}
Brad Bishop868407c2019-11-04 13:24:47 -050027@@ -346,6 +352,11 @@ case $OS_NAME in
Brad Bishop19323692019-04-05 15:28:33 -040028 echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
Brad Bishop868407c2019-11-04 13:24:47 -050029 FW=iptables
Brad Bishop19323692019-04-05 15:28:33 -040030 ;;
31+ OpenEmbedded)
32+ OS_URL=http://www.openembedded.org/
33+ echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
Brad Bishop868407c2019-11-04 13:24:47 -050034+ FW=iptables
Brad Bishop19323692019-04-05 15:28:33 -040035+ ;;
36 AstLinux)
37 OS_URL=http://www.astlinux.org/
38 echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}