diff mbox series

[U-Boot,v2] ARM: socfpga: Build sfp image only for Gen5 and Arria10 devices

Message ID 20190320201521.1459-1-dalon.westergreen@linux.intel.com
State Accepted
Commit e3ada91e49848ddcd3293a737cf08e48b2d72e42
Delegated to: Marek Vasut
Headers show
Series [U-Boot,v2] ARM: socfpga: Build sfp image only for Gen5 and Arria10 devices | expand

Commit Message

Dalon L Westergreen March 20, 2019, 8:15 p.m. UTC
From: Dalon Westergreen <dalon.westergreen@intel.com>

The sfp file is only valid for Gen5 (Cyclone5 & Arria5) and Arria10
devices.  The file should only be built for these devices.

Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
---
Changes from v1:
 -> Remove duplicate entries for GEN5 and ARRIA10
---
 Kconfig              | 3 ++-
 scripts/Makefile.spl | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

Comments

Marek Vasut March 21, 2019, 2:30 a.m. UTC | #1
On 3/20/19 9:15 PM, Dalon Westergreen wrote:
> From: Dalon Westergreen <dalon.westergreen@intel.com>
> 
> The sfp file is only valid for Gen5 (Cyclone5 & Arria5) and Arria10
> devices.  The file should only be built for these devices.
> 
> Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
> ---
> Changes from v1:
>  -> Remove duplicate entries for GEN5 and ARRIA10
> ---
>  Kconfig              | 3 ++-
>  scripts/Makefile.spl | 2 +-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/Kconfig b/Kconfig
> index 512c7beb89..305b265ed7 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -226,7 +226,8 @@ config BUILD_ROM
>  
>  config BUILD_TARGET
>  	string "Build target special images"
> -	default "u-boot-with-spl.sfp" if ARCH_SOCFPGA
> +	default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_ARRIA10
> +	default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_GEN5
>  	default "u-boot-spl.kwb" if ARCH_MVEBU && SPL
>  	default "u-boot-elf.srec" if RCAR_GEN3
>  	default "u-boot.itb" if SPL_LOAD_FIT && ARCH_SUNXI
> diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
> index 9d5921606e..54b160d72b 100644
> --- a/scripts/Makefile.spl
> +++ b/scripts/Makefile.spl
> @@ -212,7 +212,7 @@ ifdef CONFIG_SAMSUNG
>  ALL-y	+= $(obj)/$(BOARD)-spl.bin
>  endif
>  
> -ifdef CONFIG_ARCH_SOCFPGA
> +ifneq ($(CONFIG_TARGET_SOCFPGA_GEN5)$(CONFIG_TARGET_SOCFPGA_ARRIA10),)
>  ALL-y	+= $(obj)/$(SPL_BIN).sfp
>  endif
>  

Applied, thanks
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 512c7beb89..305b265ed7 100644
--- a/Kconfig
+++ b/Kconfig
@@ -226,7 +226,8 @@  config BUILD_ROM
 
 config BUILD_TARGET
 	string "Build target special images"
-	default "u-boot-with-spl.sfp" if ARCH_SOCFPGA
+	default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_ARRIA10
+	default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_GEN5
 	default "u-boot-spl.kwb" if ARCH_MVEBU && SPL
 	default "u-boot-elf.srec" if RCAR_GEN3
 	default "u-boot.itb" if SPL_LOAD_FIT && ARCH_SUNXI
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index 9d5921606e..54b160d72b 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -212,7 +212,7 @@  ifdef CONFIG_SAMSUNG
 ALL-y	+= $(obj)/$(BOARD)-spl.bin
 endif
 
-ifdef CONFIG_ARCH_SOCFPGA
+ifneq ($(CONFIG_TARGET_SOCFPGA_GEN5)$(CONFIG_TARGET_SOCFPGA_ARRIA10),)
 ALL-y	+= $(obj)/$(SPL_BIN).sfp
 endif