summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Strachan2018-10-16 17:24:16 -0500
committerAlistair Strachan2018-10-16 19:57:55 -0500
commit848da4f1318cc12619512f4e66c6b281155c5f8a (patch)
tree1cbf7c027d75626768954d55f8079ab41d2697d0 /mergeconfig.sh
parent351e67763631286964f41e000f6bfc95bbd3c49d (diff)
downloaddevice-ti-beagle-x15-848da4f1318cc12619512f4e66c6b281155c5f8a.tar.gz
device-ti-beagle-x15-848da4f1318cc12619512f4e66c6b281155c5f8a.tar.xz
device-ti-beagle-x15-848da4f1318cc12619512f4e66c6b281155c5f8a.zip
Build the x15 U-Boot binaries from source.
This change builds a config for U-Boot and then builds the MLO and u-boot.img files from the external/u-boot source tree. It uses symlinks to the host toolchain to preserve the Android build system's hermetic requirements. (The recommended configs were derived from the Things configs.) Bug: 110964307 Change-Id: I634c607ca5c07d24d46278aaf8215c70bc2e6aa0 Signed-off-by: Alistair Strachan <astrachan@google.com>
Diffstat (limited to 'mergeconfig.sh')
-rwxr-xr-xmergeconfig.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/mergeconfig.sh b/mergeconfig.sh
new file mode 100755
index 0000000..70f0d1f
--- /dev/null
+++ b/mergeconfig.sh
@@ -0,0 +1,47 @@
1#!/bin/bash
2
3#
4# Copyright 2015 The Android Open Source Project
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17
18args=( "$@" )
19confs=( )
20
21KERNEL_PATH=${args[0]}
22OUTPUT=${args[1]}
23TARGET_ARCH=${args[2]}
24TARGET_CROSS_COMPILE=${args[3]}
25
26unset "args[0]"
27unset "args[1]"
28unset "args[2]"
29unset "args[3]"
30
31curdir=$(pwd)
32
33# Explicitly record the list of config files used to build .config, and
34# canonicalize the path since we have to have our current directory in
35# the kernel source tree.
36for conf in ${args[*]} ; do
37 fullpath=$conf
38 if [ ${fullpath:0:1} != "/" ] ; then
39 fullpath=$curdir/$fullpath
40 fi
41 confs+=($fullpath)
42 echo $conf
43done > $OUTPUT/config.list
44
45cd $KERNEL_PATH
46
47ARCH=$TARGET_ARCH CROSS_COMPILE=$TARGET_CROSS_COMPILE ./scripts/kconfig/merge_config.sh -O $OUTPUT ${confs[*]} > $OUTPUT/merge_config.log