-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathbrmake
More file actions
executable file
·36 lines (36 loc) · 1.42 KB
/
brmake
File metadata and controls
executable file
·36 lines (36 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
MYHOSTNAME=`hostname`
#-----------------------------------------------------------------------
# execute this script only on the docker host
#-----------------------------------------------------------------------
if [ "$MYHOSTNAME" != "BRHOST" ]
then
echo "brmake and make must be executed on docker brhost"
exit
fi
#-----------------------------------------------------------------------
export MIPS4KCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $MIPS4KCDIR/set-env.sh
echo "-----> change dir to $BRDIR"
cd $BRDIR
echo "-----> executing: make BR2_EXTERNAL=$BR2EXT $*"
if [ ! -d $BR2EXT/patches ]
then
mkdir -p $BR2EXT/patches
fi
#-----------------------------------------------------------------------
if [ "$*" == "savedefconfig" ]
then
#-----------------------------------------------------------------------
# savedefconfig
#-----------------------------------------------------------------------
make BR2_EXTERNAL=$BR2EXT BR2_DEFCONFIG="$BR2EXT/configs/mips4kc-qemu_mipsel_malta_defconfig" $*
elif [ "$*" == "uclibc-update-defconfig" ]
then
#-----------------------------------------------------------------------
# uclibc-update-defconfig
#-----------------------------------------------------------------------
cat $BRDIR/output/build/uclibc-0.9.33.2/.config | sed "s,$BRDIR,\$\(TOPDIR\),g" > $BR2EXT/configs/uClibc-0.9.33.config
else
make BR2_EXTERNAL=$BR2EXT $*
fi