2018-05-07 05:58:06 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2001-07-05 22:47:08 +08:00
|
|
|
#
|
2006-09-02 01:49:50 +08:00
|
|
|
# (C) Copyright 2000-2006
|
2001-07-05 22:47:08 +08:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
kbuild: use Linux Kernel build scripts
Now we are ready to switch over to real Kbuild.
This commit disables temporary scripts:
scripts/{Makefile.build.tmp, Makefile.host.tmp}
and enables real Kbuild scripts:
scripts/{Makefile.build,Makefile.host,Makefile.lib}.
This switch is triggered by the line in scripts/Kbuild.include
-build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
+build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
We need to adjust some build scripts for U-Boot.
But smaller amount of modification is preferable.
Additionally, we need to fix compiler flags which are
locally added or removed.
In Kbuild, it is not allowed to change CFLAGS locally.
Instead, ccflags-y, asflags-y, cppflags-y,
CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
are prepared for that purpose.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Gerhard Sittig <gsi@denx.de>
2014-02-04 16:24:28 +08:00
|
|
|
#ccflags-y += -DET_DEBUG -DDEBUG
|
2001-07-05 22:47:08 +08:00
|
|
|
|
2022-03-12 03:10:01 +08:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)PARTITIONS) += part.o
|
2022-04-19 09:05:09 +08:00
|
|
|
ifdef CONFIG_$(SPL_TPL_)BLK
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)PARTITIONS) += disk-uclass.o
|
|
|
|
endif
|
2022-08-12 09:34:44 +08:00
|
|
|
|
2022-08-12 09:34:48 +08:00
|
|
|
# Must have BLK or SPL_LEGACY_BLOCK to support partitions
|
|
|
|
ifneq ($(CONFIG_$(SPL_TPL_)BLK),$(CONFIG_SPL_LEGACY_BLOCK),)
|
2022-03-01 03:08:29 +08:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)MAC_PARTITION) += part_mac.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)DOS_PARTITION) += part_dos.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ISO_PARTITION) += part_iso.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)AMIGA_PARTITION) += part_amiga.o
|
|
|
|
obj-$(CONFIG_$(SPL_TPL_)EFI_PARTITION) += part_efi.o
|
2022-08-12 09:34:44 +08:00
|
|
|
endif
|