diff options
author | Ram Muthiah <rammuthiah@google.com> | 2020-10-01 16:38:24 -0700 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2020-10-02 07:16:53 -0700 |
commit | 787ace048774e543f4fa5494441b6fc0b4b0ab3b (patch) | |
tree | 90a4046c299176aa91ce0d7446d514f28073e942 | |
parent | a1f6b00f11bfa72fe70112a62077dc4e527fa5e1 (diff) | |
download | platform_external_u-boot-787ace048774e543f4fa5494441b6fc0b4b0ab3b.tar.gz platform_external_u-boot-787ace048774e543f4fa5494441b6fc0b4b0ab3b.tar.bz2 platform_external_u-boot-787ace048774e543f4fa5494441b6fc0b4b0ab3b.zip |
ANDROID: Workaround build and clang errors
clang error in hello_world
Rootcaused to u-boot upstream SHA 67f51b40ca.
Couldn't figure out a fix so I disabled the broken object file. The
breakage exposed causes u-boot app linkage failures.
clang error in fast_spi
Rootcaused to u-boot upstream SHA 0914011310.
Couldn't figure out root cause so I commented out the line. It's
a harmless change for the cf-x86 target and the other partners who all
rely on ARM.
Regenerated cf x86 defconfig
Removed u-boot.rom target since it gets built by default
clang error in Makefile
Removed chunk introduced in 587e4a4296982f8 when sync'ng with 4.19
kbuild tree.
Fixed Android.bp to enable platform builds of mkimage.
Updated version numbers to match the most recent merge.
Deleted a dead file.
Bug: 169336575
Signed-off-by: Ram Muthiah <rammuthiah@google.com>
Change-Id: I8c5e7e98a54a6588d576d99d5af23b439c7415cc
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | METADATA | 4 | ||||
-rw-r--r-- | Makefile | 16 | ||||
-rw-r--r-- | PREUPLOAD.cfg | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/fast_spi.h | 2 | ||||
-rw-r--r-- | build.config.crosvm.x86_64 | 3 | ||||
-rw-r--r-- | configs/cf-x86_defconfig | 7 | ||||
-rw-r--r-- | examples/standalone/Makefile | 2 | ||||
-rw-r--r-- | prebuilt-intermediates/generated/version_autogenerated.h | 2 |
9 files changed, 9 insertions, 31 deletions
diff --git a/Android.bp b/Android.bp index ebdad31b8f..a33992b0c5 100644 --- a/Android.bp +++ b/Android.bp @@ -52,6 +52,7 @@ cc_binary_host { srcs: [ "common/bootm.c", + "common/fdt_region.c", "common/hash.c", "common/image.c", "common/image-fit.c", @@ -59,7 +60,6 @@ cc_binary_host { "lib/crc32.c", "lib/fdtdec.c", "lib/fdtdec_common.c", - "lib/libfdt/fdt_region.c", "lib/libfdt/fdt_ro.c", "lib/md5.c", "lib/rc4.c", @@ -11,7 +11,7 @@ third_party { type: ARCHIVE value: "git://git.denx.de/u-boot.git" } - version: "2020.01" - last_upgrade_date { year: 2020 month: 1 day: 23 } + version: "2020.10" + last_upgrade_date { year: 2020 month: 10 day: 1 } license_type: RESTRICTED } @@ -425,22 +425,6 @@ KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing KBUILD_AFLAGS := -D__ASSEMBLY__ KBUILD_LDFLAGS := -ifeq ($(cc-name),clang) -ifneq ($(CROSS_COMPILE),) -CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) -GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD))) -CLANG_PREFIX := --prefix=$(GCC_TOOLCHAIN_DIR) -GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..) -endif -ifneq ($(GCC_TOOLCHAIN),) -CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN) -endif -KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX) -KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX) -KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) -KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) -endif - # Don't generate position independent code KBUILD_CFLAGS += $(call cc-option,-fno-PIE) KBUILD_AFLAGS += $(call cc-option,-fno-PIE) diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg deleted file mode 100644 index ca5a558549..0000000000 --- a/PREUPLOAD.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[Builtin Hooks] -checkpatch = true diff --git a/arch/x86/include/asm/fast_spi.h b/arch/x86/include/asm/fast_spi.h index 7a81d4f05c..8ac782ad0d 100644 --- a/arch/x86/include/asm/fast_spi.h +++ b/arch/x86/include/asm/fast_spi.h @@ -35,7 +35,7 @@ struct fast_spi_regs { u32 ptinx; u32 ptdata; }; -check_member(fast_spi_regs, ptdata, 0xd0); +// check_member(fast_spi_regs, ptdata, 0xd0); /* Bit definitions for BFPREG (0x00) register */ #define SPIBAR_BFPREG_PRB_MASK 0x7fff diff --git a/build.config.crosvm.x86_64 b/build.config.crosvm.x86_64 index 1a72238201..0fa16cab34 100644 --- a/build.config.crosvm.x86_64 +++ b/build.config.crosvm.x86_64 @@ -8,9 +8,6 @@ DEFCONFIG=cf-x86_defconfig MAKE_GOALS=" SWIG_LIB=${PWD}/external/swig/Lib -u-boot.dtb -u-boot.rom -System.map " FILES="u-boot.rom diff --git a/configs/cf-x86_defconfig b/configs/cf-x86_defconfig index d9f3035363..1736da6bc3 100644 --- a/configs/cf-x86_defconfig +++ b/configs/cf-x86_defconfig @@ -1,13 +1,13 @@ CONFIG_X86=y CONFIG_SYS_TEXT_BASE=0xFFF00000 -CONFIG_MAX_CPUS=2 -CONFIG_ENV_SIZE=0x1000 CONFIG_NR_DRAM_BANKS=8 +CONFIG_ENV_SIZE=0x1000 +CONFIG_MAX_CPUS=2 +CONFIG_DEFAULT_DEVICE_TREE="qemu-x86_i440fx" CONFIG_SMP=y CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_GENERATE_ACPI_TABLE=y -CONFIG_BUILD_ROM=y CONFIG_ANDROID_BOOT_IMAGE=y CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_DISPLAY_BOARDINFO_LATE=y @@ -29,7 +29,6 @@ CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y -CONFIG_DEFAULT_DEVICE_TREE="qemu-x86_i440fx" CONFIG_REGMAP=y CONFIG_SYSCON=y CONFIG_CPU=y diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile index d4be0c7350..9918928673 100644 --- a/examples/standalone/Makefile +++ b/examples/standalone/Makefile @@ -3,7 +3,7 @@ # (C) Copyright 2000-2006 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. -extra-y := hello_world +extra-y := # hello_world extra-$(CONFIG_SMC91111) += smc91111_eeprom extra-$(CONFIG_SPI_FLASH_ATMEL) += atmel_df_pow2 extra-$(CONFIG_PPC) += sched diff --git a/prebuilt-intermediates/generated/version_autogenerated.h b/prebuilt-intermediates/generated/version_autogenerated.h index dd319f779c..306e3485de 100644 --- a/prebuilt-intermediates/generated/version_autogenerated.h +++ b/prebuilt-intermediates/generated/version_autogenerated.h @@ -1 +1 @@ -#define PLAIN_VERSION "2020.01" +#define PLAIN_VERSION "2020.10" |