Our last sync with the kernel was 5.1. We are so out of sync now, that tracking the patches and backporting them one by one makes little sense and it's going to take ages. This is an attempt to sync up Makefiles to 6.1. Unfortunately due to sheer amount of patches this is not easy to review, but that's what we decided during a community call for the bump to 5.1, so we are following the same guidelines here. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>a #rebased on -next
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
obj-y := board.o
|
|
|
|
ifneq ($(CONFIG_XILINX_PS_INIT_FILE),"")
|
|
PS_INIT_FILE := $(shell cd $(srctree); readlink -f $(CONFIG_XILINX_PS_INIT_FILE))
|
|
init-objs := ps_init_gpl.o
|
|
spl/board/xilinx/zynq/ps_init_gpl.o board/xilinx/zynq/ps_init_gpl.o: $(PS_INIT_FILE)
|
|
$(CC) $(c_flags) -I $(srctree)/$(src) -c -o $@ $^
|
|
endif
|
|
|
|
DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%)
|
|
ifeq ($(DEVICE_TREE),)
|
|
DEVICE_TREE := unset
|
|
endif
|
|
|
|
ifeq ($(init-objs),)
|
|
hw-platform-y :=$(shell echo $(DEVICE_TREE))
|
|
init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
|
|
$(hw-platform-y)/ps7_init_gpl.o)
|
|
endif
|
|
|
|
ifeq ($(init-objs),)
|
|
ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
|
|
init-objs := ps7_init_gpl.o
|
|
$(if $(CONFIG_XPL_BUILD),\
|
|
$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
|
|
endif
|
|
endif
|
|
|
|
ifndef CONFIG_XPL_BUILD
|
|
obj-$(CONFIG_CMD_ZYNQ) += cmds.o
|
|
obj-$(CONFIG_CMD_ZYNQ_RSA) += bootimg.o
|
|
endif
|
|
|
|
obj-$(CONFIG_XPL_BUILD) += $(init-objs)
|
|
|
|
# Suppress "warning: function declaration isn't a prototype"
|
|
CFLAGS_REMOVE_$(hw-platform-y)/ps7_init_gpl.o := -Wstrict-prototypes
|
|
|
|
# To include xil_io.h
|
|
CFLAGS_$(hw-platform-y)/ps7_init_gpl.o := -I$(srctree)/$(src)
|