From 0f13efe593e1961e975ce7273e2837a058117f85 Mon Sep 17 00:00:00 2001 From: mortzu Date: Sat, 8 Aug 2015 15:26:36 +0200 Subject: [PATCH 1/4] Changed shebang to generic one --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2ffc8f7..3507a1a 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env sh FIRMWARE_URL="http://downloads.bremen.freifunk.net/firmware/" LOCAL_SUFFIX="bremen" From 9c847272230ea37fa3b6023da6c5aa0e4e865348 Mon Sep 17 00:00:00 2001 From: mortzu Date: Sat, 8 Aug 2015 15:28:07 +0200 Subject: [PATCH 2/4] Added newline to gain more readability --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 3507a1a..c9cc5d5 100755 --- a/build.sh +++ b/build.sh @@ -105,6 +105,7 @@ for target in ar71xx-generic ar71xx-nand mpc85xx-generic; do done make manifest cd .. + if [ -n "$KEYFILE" -a -r "$KEYFILE" ]; then "${GLUON_DIR}/contrib/sign.sh" "$KEYFILE" "${GLUON_DIR}/images/sysupgrade/${GLUON_BRANCH}.manifest" fi From fe40afcbd22cf0b3b002b9da52142ab80fdc4a50 Mon Sep 17 00:00:00 2001 From: mortzu Date: Sat, 8 Aug 2015 15:28:28 +0200 Subject: [PATCH 3/4] Fixed indention --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index c9cc5d5..77b569d 100755 --- a/build.sh +++ b/build.sh @@ -107,5 +107,5 @@ make manifest cd .. if [ -n "$KEYFILE" -a -r "$KEYFILE" ]; then - "${GLUON_DIR}/contrib/sign.sh" "$KEYFILE" "${GLUON_DIR}/images/sysupgrade/${GLUON_BRANCH}.manifest" + "${GLUON_DIR}/contrib/sign.sh" "$KEYFILE" "${GLUON_DIR}/images/sysupgrade/${GLUON_BRANCH}.manifest" fi From ae3a21fdf77923940353894f8a904846be45eb74 Mon Sep 17 00:00:00 2001 From: mortzu Date: Sat, 8 Aug 2015 15:28:38 +0200 Subject: [PATCH 4/4] Added support for x86 target --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 77b569d..0930d0f 100755 --- a/build.sh +++ b/build.sh @@ -99,7 +99,7 @@ fi cd "$GLUON_DIR" make update ${debug:+V=s} -for target in ar71xx-generic ar71xx-nand mpc85xx-generic; do +for target in ar71xx-generic ar71xx-nand mpc85xx-generic x86-generic; do make clean GLUON_TARGET="$target" ${debug:+V=s} make -j${proc_num} GLUON_TARGET="$target" ${debug:+V=s} done