Fix for building Odroid C2 u-boot

This commit is contained in:
zador-blood-stained 2016-08-20 21:58:55 +03:00
parent 13774a5f6c
commit f0293d77bf
3 changed files with 27 additions and 1 deletions

View file

@ -501,7 +501,7 @@ prepare_host() {
gawk gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi qemu-user-static u-boot-tools uuid-dev zlib1g-dev unzip libusb-1.0-0-dev ntpdate \
parted pkg-config libncurses5-dev whiptail debian-keyring debian-archive-keyring f2fs-tools libfile-fcntllock-perl rsync libssl-dev \
nfs-kernel-server btrfs-tools gcc-aarch64-linux-gnu ncurses-term p7zip-full dos2unix dosfstools libc6-dev-armhf-cross libc6-dev-armel-cross\
libc6-dev-arm64-cross curl pdftk"
libc6-dev-arm64-cross curl pdftk gcc-arm-none-eabi"
local codename=$(lsb_release -sc)
display_alert "Build host OS release" "${codename:-(unknown)}" "info"

View file

@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 27153d8..ae30482 100644
--- a/Makefile
+++ b/Makefile
@@ -1339,6 +1339,8 @@ CLEAN_DIRS += $(MODVERDIR) \
$(foreach d, spl tpl, $(patsubst %,$d/%, \
$(filter-out include, $(shell ls -1 $d 2>/dev/null))))
+CLEAN_FILES += sd_fuse/u-boot.bin
+
CLEAN_FILES += include/bmp_logo.h include/bmp_logo_data.h \
u-boot* MLO* SPL System.map

View file

@ -0,0 +1,13 @@
diff --git a/arch/arm/cpu/armv8/gxb/firmware/scp_task/Makefile b/arch/arm/cpu/armv8/gxb/firmware/scp_task/Makefile
index 865d142..cf5a48e 100644
--- a/arch/arm/cpu/armv8/gxb/firmware/scp_task/Makefile
+++ b/arch/arm/cpu/armv8/gxb/firmware/scp_task/Makefile
@@ -6,7 +6,7 @@ include $(buildtree)/include/autoconf.mk
include $(buildtree)/.config
# Select ARMv7-m bare-metal toolchain
-CROSS_COMPILE=arm-none-eabi-
+override CROSS_COMPILE=arm-none-eabi-
ASM=$(CROSS_COMPILE)as
CC=$(CROSS_COMPILE)gcc
CPP=$(CROSS_COMPILE)cpp