diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2016-07-01 14:51:19 +0100 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2016-07-01 14:51:19 +0100 |
commit | a4128c7e038db3333e1b5de592a94e728249abab (patch) | |
tree | b4be89ee76577d902d45f03d3119bec9e0aefea0 /filesystems | |
parent | 8e9a4c3fa09dfa531331ef0a91a96e55b70251dc (diff) |
Merge latest ARM scripts
Merge the latest build script from ARM's internal repository.
Taken at this SHA ID:
035649e618f1471413e220ec558a8360b4769d71
035649e 2016-05-27 build-script refactor [Sudipto Paul]
This patch squashes down the change history from the series on the
internal tree to this single revision.
Change-Id: I70352fd520aa5206379bb417c6d7e93935b9f101
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Diffstat (limited to 'filesystems')
-rw-r--r-- | filesystems/android | 48 | ||||
-rw-r--r-- | filesystems/busybox | 48 | ||||
-rw-r--r-- | filesystems/oe | 45 |
3 files changed, 141 insertions, 0 deletions
diff --git a/filesystems/android b/filesystems/android new file mode 100644 index 0000000..3e42b6a --- /dev/null +++ b/filesystems/android @@ -0,0 +1,48 @@ +# Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# +# Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# Neither the name of ARM nor the names of its contributors may be used +# to endorse or promote products derived from this software without specific +# prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +ANDROID_BUILD_ENABLED=1 +BUILD_SCRIPTS=$BUILD_SCRIPTS"build-android.sh " +ANDROID_SOURCE_PATH=android +ANDROID_BINARIES_PATH=prebuilts/android + +#Still need to set ANDROID_BINS_VARIANTS to a name of choice + +TARGET_BINS_HAS_DTB_RAMDISK=1 +TARGET_BINS_HAS_ANDROID=1 + +LINUX_CONFIG_LIST="$LINUX_CONFIG_LIST $ANDROID_LINUX_CONFIG_LIST" +LINUX_CONFIG_DEFAULT=$ANDROID_LINUX_CONFIG_LIST + +#Append TARGET_BINS_COPY_LIST_ANDROID into TARGET_BINS_COPY_LIST + +index=${#TARGET_BINS_COPY_LIST[@]} +android_length=${#TARGET_BINS_COPY_LIST_ANDROID[@]} +for (( i=0; i<${android_length}; i++)); do + TARGET_BINS_COPY_LIST[$[index++]]="${TARGET_BINS_COPY_LIST_ANDROID[$i]}" +done diff --git a/filesystems/busybox b/filesystems/busybox new file mode 100644 index 0000000..1494f68 --- /dev/null +++ b/filesystems/busybox @@ -0,0 +1,48 @@ +# Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# +# Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# Neither the name of ARM nor the names of its contributors may be used +# to endorse or promote products derived from this software without specific +# prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +BUSYBOX_BUILD_ENABLED=1 +BUILD_SCRIPTS=$BUILD_SCRIPTS"build-busybox.sh " +BUSYBOX_PATH=busybox +BUSYBOX_ARCH=arm +BUSYBOX_RAMDISK_PATH=ramdisk +BUSYBOX_RAMDISK_BUSYBOX_PATH=$BUSYBOX_PATH/_install/bin/busybox + +TARGET_BINS_HAS_DTB_RAMDISK=1 +TARGET_BINS_HAS_BUSYBOX=1 + +LINUX_CONFIG_LIST="$LINUX_CONFIG_LIST $BUSYBOX_LINUX_CONFIG_LIST" +LINUX_CONFIG_DEFAULT=$BUSYBOX_LINUX_CONFIG_LIST + +#Append TARGET_BINS_COPY_LIST_ANDROID into TARGET_BINS_COPY_LIST + +index=${#TARGET_BINS_COPY_LIST[@]} +busybox_length=${#TARGET_BINS_COPY_LIST_BUSYBOX[@]} +for (( i=0; i<${busybox_length}; i++)); do + TARGET_BINS_COPY_LIST[$[index++]]="${TARGET_BINS_COPY_LIST_BUSYBOX[$i]}" +done diff --git a/filesystems/oe b/filesystems/oe new file mode 100644 index 0000000..205b38c --- /dev/null +++ b/filesystems/oe @@ -0,0 +1,45 @@ +# Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# +# Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# Neither the name of ARM nor the names of its contributors may be used +# to endorse or promote products derived from this software without specific +# prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +OE_RAMDISK_BUILD_ENABLED=1 +BUILD_SCRIPTS=$BUILD_SCRIPTS"build-oe-binaries.sh " +OE_BINARIES_PATH=prebuilts/oe + +TARGET_BINS_HAS_DTB_RAMDISK=1 +TARGET_BINS_HAS_OE=1 + +LINUX_CONFIG_LIST="$LINUX_CONFIG_LIST $OE_LINUX_CONFIG_LIST" +LINUX_CONFIG_DEFAULT=$OE_LINUX_CONFIG_LIST + +#Append TARGET_BINS_COPY_LIST_OE into TARGET_BINS_COPY_LIST + +index=${#TARGET_BINS_COPY_LIST[@]} +oe_length=${#TARGET_BINS_COPY_LIST_OE[@]} +for (( i=0; i<$oe_length; i++ )); do + TARGET_BINS_COPY_LIST[$[index++]]="${TARGET_BINS_COPY_LIST_OE[$i]}" +done |