| | |
| | | diff -Nuar at91bootstrap/build.sh at91bootstrap-sama5d4/build.sh |
| | | --- at91bootstrap/build.sh 1970-01-01 08:00:00.000000000 +0800 |
| | | +++ at91bootstrap-sama5d4/build.sh 2019-08-04 22:38:17.093670157 +0800 |
| | | @@ -0,0 +1,69 @@ |
| | | +++ at91bootstrap-sama5d4/build.sh 2019-08-22 19:29:04.983275344 +0800 |
| | | @@ -0,0 +1,71 @@ |
| | | +#!/bin/bash |
| | | + |
| | | +BOARD=sama5d4 |
| | |
| | | +IMGS_PATH=../images |
| | | +IMG_NAME=bootstrap-${BOARD}.bin |
| | | + |
| | | +CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | +CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | +JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l` |
| | | + |
| | | + |
| | |
| | | + make CROSS_COMPILE=${CROSSTOOL} mrproper |
| | | + find -iname "*.pyc" | xargs rm -rf {} \; |
| | | + rm -f $IMG_NAME |
| | | + rm -f cscope* tags |
| | | +} |
| | | + |
| | | +function do_modify() |
| | |
| | | + |
| | | +function do_build() |
| | | +{ |
| | | + if [ ! -f .confg ] ; then |
| | | + if [ ! -f .config ] ; then |
| | | + echo "cp .cfg-${BOARD} .config" |
| | | + cp .cfg-${BOARD} .config |
| | | + fi |
| | | + |
| | |
| | | + |
| | | diff -Nuar at91bootstrap/.cfg-sama5d4 at91bootstrap-sama5d4/.cfg-sama5d4 |
| | | --- at91bootstrap/.cfg-sama5d4 1970-01-01 08:00:00.000000000 +0800 |
| | | +++ at91bootstrap-sama5d4/.cfg-sama5d4 2019-08-04 22:39:19.309671350 +0800 |
| | | +++ at91bootstrap-sama5d4/.cfg-sama5d4 2019-08-23 00:01:11.723588530 +0800 |
| | | @@ -0,0 +1,274 @@ |
| | | +# |
| | | +# Automatically generated make config: don't edit |
| | | +# Sun Aug 4 22:19:10 2019 |
| | | +# Thu Aug 22 23:43:05 2019 |
| | | +# |
| | | +HAVE_DOT_CONFIG=y |
| | | +# CONFIG_AT91SAM9260EK is not set |
| | |
| | | +CONFIG_TWI1=y |
| | | +CONFIG_TWI2=y |
| | | +CONFIG_TWI3=y |
| | | +CONFIG_MACB=y |
| | | +# CONFIG_MACB is not set |
| | | +# CONFIG_AES is not set |
| | | +CONFIG_LOAD_HW_INFO=y |
| | | +# CONFIG_LOAD_HW_INFO is not set |
| | | +CPU_HAS_TWI0=y |
| | | +CPU_HAS_TWI1=y |
| | | +CPU_HAS_TWI2=y |
| | |
| | | +# |
| | | +# U-Boot Image Storage Setup |
| | | +# |
| | | +CONFIG_IMG_SIZE="0x000a0000" |
| | | +CONFIG_IMG_SIZE="0x00080000" |
| | | +CONFIG_DEBUG=y |
| | | +CONFIG_DEBUG_INFO=y |
| | | +# CONFIG_DEBUG_LOUD is not set |
| | |
| | | +# |
| | | +# Select the Devices to the Low-power mode |
| | | +# |
| | | +CONFIG_MAC0_PHY=y |
| | | +CONFIG_HDMI=y |
| | | +# CONFIG_MAC0_PHY is not set |
| | | +# CONFIG_HDMI is not set |
| | | +CONFIG_PM_PMIC=y |
| | | +# CONFIG_BACKUP_MODE is not set |
| | | + |
| | |
| | | +# |
| | | +# Board Hardware Information Options |
| | | +# |
| | | +CONFIG_LOAD_EEPROM=y |
| | | +# CONFIG_LOAD_EEPROM is not set |
| | | +CONFIG_AUTOCONFIG_TWI_BUS=y |
| | | + |
| | | +# |
| | |
| | | +CONFIG_PMC=y |
| | | diff -Nuar at91bootstrap/Makefile at91bootstrap-sama5d4/Makefile |
| | | --- at91bootstrap/Makefile 2019-08-02 17:30:35.000000000 +0800 |
| | | +++ at91bootstrap-sama5d4/Makefile 2019-08-04 22:30:49.613661573 +0800 |
| | | +++ at91bootstrap-sama5d4/Makefile 2019-08-22 19:29:04.983275344 +0800 |
| | | @@ -119,6 +119,7 @@ |
| | | |
| | | HOSTARCH := $(shell uname -m | sed -e s/arm.*/arm/) |
| | | |
| | | +CROSS_COMPILE=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | +CROSS_COMPILE=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | AS=$(CROSS_COMPILE)gcc |
| | | CC=$(CROSS_COMPILE)gcc |
| | | LD=$(CROSS_COMPILE)ld |