[U-Boot] [PATCHv2 9/9] arm: socfpga: remove building scan manager

Marek Vasut
2015-12-01T19:05:40Z

On Tuesday, December 01, 2015 at 05:48:39 PM, dinguyen at opensource.altera.com
wrote:
> From: Dinh Nguyen <dinguyen@opensource.altera.com>
>
> The scan manager is not needed for the Arria10. Edit the makefile to
> build the scan manager for arria5 and cyclone5 only.
>
> Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
> ---
> arch/arm/mach-socfpga/Makefile | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-socfpga/Makefile
> b/arch/arm/mach-socfpga/Makefile index 316b326..d4c5a42 100644
> --- a/arch/arm/mach-socfpga/Makefile
> +++ b/arch/arm/mach-socfpga/Makefile
> @@ -8,11 +8,14 @@
> #
>
> obj-y += misc.o timer.o reset_manager.o system_manager.o
clock_manager.o \
> - fpga_manager.o scan_manager.o
> + fpga_manager.o
> +
> obj-$(CONFIG_SPL_BUILD) += spl.o freeze_controller.o
>
> +ifneq ($(CONFIG_TARGET_SOCFPGA_ARRIA10),y)
> # QTS-generated config file wrappers
> -obj-y += wrap_pll_config.o
> +obj-y += scan_manager.o wrap_pll_config.o
> +endif
> obj-$(CONFIG_SPL_BUILD) += wrap_iocsr_config.o wrap_pinmux_config.o \
> wrap_sdram_config.o
> CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR)

I'd suggest to use this construct here:

obj-$(CONFIG_TARGET_SOCFPGA_CYCLONE5) += foo.o
obj-$(CONFIG_TARGET_SOCFPGA_ARRIA5) += foo.o

Best regards,
Marek Vasut