Revisió 88cb0f51
Afegit per Pau Escrich fa més de 11 anys
Makefile | ||
---|---|---|
# You should have received a copy of the GNU General Public License
|
||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
#
|
||
# Author: Pau Escrich <p4u@dabax.net>
|
||
# Contributors: Simó Albert i Beltran, Agustí Moll
|
||
# Contributors: Pau Escrich <p4u@dabax.net>, Simó Albert i Beltran, Agustí Moll
|
||
|
||
|
||
#OWRT_SVN_REV = 29592
|
||
... | ... | |
define update_feeds
|
||
@echo "Updating feed $(1)"
|
||
./$(BUILD_DIR)/$(1)/scripts/feeds update -a
|
||
|
||
# Temporay patch while old bmx6 is still in OpenWRT
|
||
./$(BUILD_DIR)/$(1)/scripts/feeds install -a -p openwrt_routing
|
||
|
||
./$(BUILD_DIR)/$(1)/scripts/feeds install -a
|
||
endef
|
||
|
scripts/README | ||
---|---|---|
#
|
||
# All files named *.script placed in this directory will be executed during compilation process.
|
||
# First parameter will be PRE_BUILD or POST_BUILD, so script can detect which is the current step and it can be executed or not.
|
||
# Second parameter will be the Target for the current compilation.
|
||
#
|
||
# Second parameter will be the build directory relative to build/ (ex. ar71xx)
|
||
# Third parameter will be the target name (ex. nsm5)
|
||
# See the existing scripts to better understand the idea of this recipes
|
scripts/copyregdb.script | ||
---|---|---|
#!/bin/sh
|
||
[ "$1" != "PRE_BUILD" ] && exit 0
|
||
shift
|
||
TARGET="$1"
|
||
[ -z "$TARGET" ] || [ ! -d "build/$TARGET" ] && exit 1
|
||
cp -f scripts/files/regdb.txt build/$TARGET/package/mac80211/files
|
||
TBUILD="$1"
|
||
|
||
[ -z "$TBUILD" ] || [ ! -d "build/$TBUILD" ] && exit 1
|
||
cp -f scripts/files/regdb.txt build/$TBUILD/package/mac80211/files
|
scripts/enable-bmx6-quagga.script | ||
---|---|---|
#!/bin/sh
|
||
[ "$1" != "PRE_BUILD" ] && exit 0
|
||
shift
|
||
TBUILD="$1"
|
||
[ -z "$TBUILD" ] || [ ! -d "build/$TBUILD" ] && exit 1
|
||
sed -i -e "s|@BROKEN||" build/$TBUILD/feeds/openwrt_routing/bmx6/Makefile
|
scripts/ubnt-fix-image.script | ||
---|---|---|
|
||
[ "$1" != "PRE_BUILD" ] && exit 0
|
||
|
||
shift
|
||
TBUILD="$2"
|
||
|
||
shift
|
||
TARGET="$1"
|
||
|
||
[ -z "$TARGET" ] || [ ! -d "build/nsm5" ] && exit 1
|
||
[ -z "$TARGET" ] || [ -z "$TBUILD" ] || [ ! -d "build/$TBUILD" ] && exit 1
|
||
[[ "$UBNT_TARGETS" =~ "$TARGET" ]] || exit 2
|
||
|
||
FILE="build/nsm5/target/linux/ar71xx/image/Makefile"
|
||
FILE="build/$TBUILD/target/linux/ar71xx/image/Makefile"
|
||
sed -i -e s/"XM,ar7240)"/"XM,ar7240.v5.3.6)"/g $FILE
|
També disponible a: Unified diff
Adapt the pre_build/post_build scripts to the new variable scheme (TARGET/TBUILD)
Add a new script to enable bmx6-quagga from bmx6 package (the current one is marked as BROKEN)
Update the script's README