scripts: Remove the scripts for RPI3
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 4 Sep 2019 00:10:25 +0000 (09:10 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 2 Apr 2020 04:09:09 +0000 (13:09 +0900)
Remove any RPI3 scripts, we don't need now.

Change-Id: I2b5f365fa363edd43abf35a740373ebdf03bf5ab
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
build-rpi3-arm32.sh [deleted file]
build-rpi3-arm64.sh [deleted file]
scripts/mkbootimg_rpi3.sh [deleted file]

diff --git a/build-rpi3-arm32.sh b/build-rpi3-arm32.sh
deleted file mode 100755 (executable)
index 1e8c02a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-
-# Check this system has ccache
-check_ccache()
-{
-       type ccache
-       if [ "$?" -eq "0" ]; then
-               CCACHE=ccache
-       fi
-}
-
-check_ccache
-
-rm -f arch/arm/boot/zImage
-rm -f arch/arm/boot/dts/*.dtb
-
-if ! [ -e .config ] ; then
-       make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- tizen_bcm2709_defconfig
-fi
-
-make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8
-
-if [ ! -f "./arch/arm/boot/zImage" ]; then
-       echo "Build fail"
-       exit 1
-fi
diff --git a/build-rpi3-arm64.sh b/build-rpi3-arm64.sh
deleted file mode 100755 (executable)
index 15b9391..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-# Check this system has ccache
-check_ccache()
-{
-       type ccache
-       if [ "$?" -eq "0" ]; then
-               CCACHE=ccache
-       fi
-}
-
-check_ccache
-
-rm -f arch/arm64/boot/Image
-rm -f arch/arm64/boot/dts/broadcom/*.dtb
-
-if ! [ -e .config ] ; then
-       make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- tizen_bcmrpi3_defconfig
-fi
-
-make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
-make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs
-if [ ! -f "./arch/arm64/boot/Image" ]; then
-       echo "Build fail"
-       exit 1
-fi
-
-make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules_prepare -j8
-make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules -j8
diff --git a/scripts/mkbootimg_rpi3.sh b/scripts/mkbootimg_rpi3.sh
deleted file mode 100755 (executable)
index 490d7d8..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/bash
-
-BOOT_PATH="rpi3/boot"
-USER_ID=`id -u`
-GROUP_ID=`id -g`
-IS_64BIT=`cat .config | grep CONFIG_64BIT`
-
-rm -f boot.img
-rm -rf tmp
-mkdir tmp
-
-# Create boot.img
-mkfs.vfat -F 16 -C -n BOOT boot.img 65536
-sudo mount -o loop,uid=$USER_ID,gid=$GROUP_ID,showexec boot.img ./tmp
-if [ -n "$IS_64BIT" ]; then
-       echo "Create 64bit boot image"
-       cp -a $BOOT_PATH/config_64bit.txt ./tmp/config.txt
-else
-       echo "Create 32bit boot image"
-       cp -a $BOOT_PATH/config_32bit.txt ./tmp/config.txt
-fi
-cp -a $BOOT_PATH/LICENCE.broadcom ./tmp
-cp -a $BOOT_PATH/bootcode.bin ./tmp
-cp -a $BOOT_PATH/start*.elf ./tmp
-cp -a $BOOT_PATH/fixup*.dat ./tmp
-if [ -n "$IS_64BIT" ]; then
-       cp -a arch/arm64/boot/Image ./tmp
-       cp -a arch/arm64/boot/dts/broadcom/bcm*.dtb ./tmp
-else
-       cp -a arch/arm/boot/zImage ./tmp
-       cp -a arch/arm/boot/dts/bcm*.dtb ./tmp
-fi
-
-# install u-boot files extracted from u-boot-rpi3 rpm package in download.tizen.org.
-TMP_UBOOT_PATH=tmp_uboot
-mkdir -p ${TMP_UBOOT_PATH}
-pushd ${TMP_UBOOT_PATH}
-if [ -n "$IS_64BIT" ]; then
-       REPO_URL=http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/aarch64/
-else
-       REPO_URL=http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/armv7l/
-fi
-rm -f index.html*
-wget ${REPO_URL}
-UBOOT=`awk -F\" '{ print $2 }' index.html | grep u-boot-rpi3`
-wget ${REPO_URL}${UBOOT}
-unrpm ${UBOOT}
-
-# install u-boot.img having optee.bin extracted from atf-rpi3 rpm package in download.tizen.org.
-if [ -n "$IS_64BIT" ]; then
-       ATF=`awk -F\" '{ print $2 }' index.html | grep atf-rpi3`
-       wget ${REPO_URL}${ATF}
-       unrpm ${ATF}
-fi
-
-popd
-cp -a ${TMP_UBOOT_PATH}/boot/* ./tmp
-rm -rf ${TMP_UBOOT_PATH}
-
-sync
-sudo umount tmp
-
-rm -f modules.img
-mkdir -p tmp/lib/modules
-
-# Create modules.img
-dd if=/dev/zero of=modules.img bs=1024 count=20480
-mkfs.ext4 -q -F -t ext4 -b 1024 -L modules modules.img
-sudo mount -o loop modules.img ./tmp/lib/modules
-if [ -n "$IS_64BIT" ]; then
-       sudo make modules_install ARCH=arm64 INSTALL_MOD_PATH=./tmp INSTALL_MOD_STRIP=1 CROSS_COMPILE=aarch64-linux-gnu-
-else
-       sudo make modules_install ARCH=arm INSTALL_MOD_PATH=./tmp INSTALL_MOD_STRIP=1 CROSS_COMPILE=arm-linux-gnueabi-
-fi
-sudo -n chown root:root ./tmp/lib/modules -R
-
-sync
-sudo umount tmp/lib/modules
-
-rm -rf tmp