Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From 54698856e5602bbd9d61e855814c854a013b4840 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 22 Dec 2018 18:47:45 -0800 |
| 4 | Subject: [PATCH] Add OpenEmbedded cross compile case |
| 5 | |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 6 | Upstream-Status: Submitted [https://github.com/miniupnp/miniupnp/pull/410] |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- |
| 9 | genconfig.sh | 11 +++++++++++ |
| 10 | 1 file changed, 11 insertions(+) |
| 11 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | --- a/genconfig.sh |
| 13 | +++ b/genconfig.sh |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 14 | @@ -103,6 +103,12 @@ if [ -f ../shared/tomato_version ]; then |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 15 | 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 Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 27 | @@ -346,6 +352,11 @@ case $OS_NAME in |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 28 | echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE} |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 29 | FW=iptables |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 30 | ;; |
| 31 | + OpenEmbedded) |
| 32 | + OS_URL=http://www.openembedded.org/ |
| 33 | + echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE} |
Brad Bishop | 868407c | 2019-11-04 13:24:47 -0500 | [diff] [blame] | 34 | + FW=iptables |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 35 | + ;; |
| 36 | AstLinux) |
| 37 | OS_URL=http://www.astlinux.org/ |
| 38 | echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE} |