2018-05-07 05:58:06 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-02-25 07:28:19 +08:00
|
|
|
#
|
2006-09-02 01:49:50 +08:00
|
|
|
# (C) Copyright 2000-2006
|
2002-02-25 07:28:19 +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 += -DDEBUG
|
2002-02-25 07:28:19 +08:00
|
|
|
|
2015-01-20 13:16:07 +08:00
|
|
|
obj-y += checksum.o
|
2018-04-14 04:26:38 +08:00
|
|
|
obj-$(CONFIG_NET) += arp.o
|
2018-04-14 04:26:30 +08:00
|
|
|
obj-$(CONFIG_CMD_BOOTP) += bootp.o
|
2013-10-17 16:35:00 +08:00
|
|
|
obj-$(CONFIG_CMD_CDP) += cdp.o
|
|
|
|
obj-$(CONFIG_CMD_DNS) += dns.o
|
2016-01-18 05:52:00 +08:00
|
|
|
ifdef CONFIG_DM_ETH
|
2018-04-14 04:26:38 +08:00
|
|
|
obj-$(CONFIG_NET) += eth-uclass.o
|
2016-01-18 05:52:00 +08:00
|
|
|
else
|
2018-04-14 04:26:38 +08:00
|
|
|
obj-$(CONFIG_NET) += eth_legacy.o
|
2016-01-18 05:52:00 +08:00
|
|
|
endif
|
2019-06-04 00:10:30 +08:00
|
|
|
obj-$(CONFIG_DM_MDIO) += mdio-uclass.o
|
2019-07-12 15:13:50 +08:00
|
|
|
obj-$(CONFIG_DM_MDIO_MUX) += mdio-mux-uclass.o
|
2018-04-14 04:26:38 +08:00
|
|
|
obj-$(CONFIG_NET) += eth_common.o
|
2013-10-17 16:35:00 +08:00
|
|
|
obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o
|
2018-04-14 04:26:38 +08:00
|
|
|
obj-$(CONFIG_NET) += net.o
|
2013-10-17 16:35:00 +08:00
|
|
|
obj-$(CONFIG_CMD_NFS) += nfs.o
|
|
|
|
obj-$(CONFIG_CMD_PING) += ping.o
|
|
|
|
obj-$(CONFIG_CMD_RARP) += rarp.o
|
|
|
|
obj-$(CONFIG_CMD_SNTP) += sntp.o
|
2018-04-14 04:26:30 +08:00
|
|
|
obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
|
2018-05-29 23:30:53 +08:00
|
|
|
obj-$(CONFIG_UDP_FUNCTION_FASTBOOT) += fastboot.o
|
2018-06-23 04:29:54 +08:00
|
|
|
obj-$(CONFIG_CMD_WOL) += wol.o
|
2017-05-11 03:26:06 +08:00
|
|
|
|
|
|
|
# Disable this warning as it is triggered by:
|
|
|
|
# sprintf(buf, index ? "foo%d" : "foo", index)
|
|
|
|
# and this is intentional usage.
|
|
|
|
CFLAGS_eth_common.o += -Wno-format-extra-args
|