-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·33 lines (27 loc) · 1.02 KB
/
build.sh
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
#!/bin/bash
#Script to build buildroot configuration
#Author: Siddhant Jajoo
source shared.sh
EXTERNAL_REL_BUILDROOT=../base_external
git submodule init
git submodule sync
git submodule update
set -e
cd `dirname $0`
if [ ! -e buildroot/.config ]
then
echo "MISSING BUILDROOT CONFIGURATION FILE"
if [ -e ${AESD_MODIFIED_DEFCONFIG} ]
then
echo "USING ${AESD_MODIFIED_DEFCONFIG}"
make -C buildroot defconfig BR2_EXTERNAL=${EXTERNAL_REL_BUILDROOT} BR2_DEFCONFIG=${AESD_MODIFIED_DEFCONFIG_REL_BUILDROOT}
else
echo "Run ./save_config.sh to save this as the default configuration in ${AESD_MODIFIED_DEFCONFIG}"
echo "Then add packages as needed to complete the installation, re-running ./save_config.sh as needed"
make -C buildroot defconfig BR2_EXTERNAL=${EXTERNAL_REL_BUILDROOT} BR2_DEFCONFIG=${AESD_DEFAULT_DEFCONFIG}
fi
else
echo "USING EXISTING BUILDROOT CONFIG"
echo "To force update, delete .config or make changes using make menuconfig and build again."
make -C buildroot BR2_EXTERNAL=${EXTERNAL_REL_BUILDROOT}
fi