rockchip: Disable binary generation for all SoCs.
authorChristoph Müllner <[email protected]>
Wed, 24 Apr 2019 07:52:54 +0000 (09:52 +0200)
committerChristoph Müllner <[email protected]>
Thu, 2 May 2019 10:27:19 +0000 (12:27 +0200)
All supported Rockchip SoCs (RK3288, RK3328, RK3368 and RK3399)
have non-continuous memory areas in the linker script with a huge
gap between them. This results in extremely padded binary images
with a size of about 4 GiB.

E.g. on the RK3399 we have the following memory areas (and base addresses):
RAM (0x1000), SRAM (0xFF8C0000), and PMUSRAM (0xFF3B0000).

Consumers of the TF-A project (e.g. coreboot or U-Boot) therefore
use the ELF image instead, which has a size of a few hundred kBs.

In order to prevent the generation of a huge and useless file,
this patch disables the binary generation for all affected Rockchip
SoCs.

Signed-off-by: Christoph Müllner <[email protected]>
Change-Id: I4ac65bdf1e598c3e1a59507897d183aee9a36916

plat/rockchip/rk3288/platform.mk
plat/rockchip/rk3328/platform.mk
plat/rockchip/rk3368/platform.mk
plat/rockchip/rk3399/platform.mk

index d203581509ce0802e1616da65e4bee4f6a9f3809..1811b3af8de60b77135f928b65f928cf7d439065 100644 (file)
@@ -11,6 +11,8 @@ RK_PLAT                       :=      plat/rockchip
 RK_PLAT_SOC            :=      ${RK_PLAT}/${PLAT}
 RK_PLAT_COMMON         :=      ${RK_PLAT}/common
 
+DISABLE_BIN_GENERATION :=      1
+
 PLAT_INCLUDES          :=      -I${RK_PLAT_COMMON}/                            \
                                -I${RK_PLAT_COMMON}/include/                    \
                                -I${RK_PLAT_COMMON}/aarch32/                    \
index 98654a54e5b8496f9757accc92a1a6e3a1f79fb0..3e7033049e4ad44f823045e49e5dbef3bebbf3fb 100644 (file)
@@ -8,6 +8,8 @@ RK_PLAT                 :=      plat/rockchip
 RK_PLAT_SOC            :=      ${RK_PLAT}/${PLAT}
 RK_PLAT_COMMON         :=      ${RK_PLAT}/common
 
+DISABLE_BIN_GENERATION :=      1
+
 PLAT_INCLUDES          :=      -Idrivers/arm/gic/common/                       \
                                -Idrivers/arm/gic/v2/                   \
                                -I${RK_PLAT_COMMON}/                            \
index 0495a161970aa283c8674998d01d817e82db2cc6..51368dea92399934fd2c1e4ce86521d13bd639c2 100644 (file)
@@ -8,6 +8,8 @@ RK_PLAT                 :=      plat/rockchip
 RK_PLAT_SOC            :=      ${RK_PLAT}/${PLAT}
 RK_PLAT_COMMON         :=      ${RK_PLAT}/common
 
+DISABLE_BIN_GENERATION :=      1
+
 PLAT_INCLUDES          :=      -I${RK_PLAT_COMMON}/                            \
                                -I${RK_PLAT_COMMON}/include/                    \
                                -I${RK_PLAT_COMMON}/aarch64/                    \
index c73df6d767e3fcc1831391ef46cc723a4fc37d22..f917f61ba0691190bc9862fe08d6328a873d6fbf 100644 (file)
@@ -8,6 +8,8 @@ RK_PLAT         :=      plat/rockchip
 RK_PLAT_SOC    :=      ${RK_PLAT}/${PLAT}
 RK_PLAT_COMMON :=      ${RK_PLAT}/common
 
+DISABLE_BIN_GENERATION :=      1
+
 PLAT_INCLUDES          :=      -I${RK_PLAT_COMMON}/                    \
                                -I${RK_PLAT_COMMON}/include/            \
                                -I${RK_PLAT_COMMON}/aarch64/            \