2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-02-24 23:28:19 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2002-02-24 23:28:19 +00: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 08:24:28 +00:00
|
|
|
#ccflags-y += -DDEBUG
|
2002-02-24 23:28:19 +00:00
|
|
|
|
2015-01-20 05:16:07 +00:00
|
|
|
obj-y += checksum.o
|
2018-04-13 20:26:38 +00:00
|
|
|
obj-$(CONFIG_NET) += arp.o
|
2018-04-13 20:26:30 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTP) += bootp.o
|
2013-10-17 08:35:00 +00:00
|
|
|
obj-$(CONFIG_CMD_CDP) += cdp.o
|
|
|
|
obj-$(CONFIG_CMD_DNS) += dns.o
|
2016-01-17 21:52:00 +00:00
|
|
|
ifdef CONFIG_DM_ETH
|
2018-04-13 20:26:38 +00:00
|
|
|
obj-$(CONFIG_NET) += eth-uclass.o
|
2016-01-17 21:52:00 +00:00
|
|
|
else
|
2018-04-13 20:26:38 +00:00
|
|
|
obj-$(CONFIG_NET) += eth_legacy.o
|
2016-01-17 21:52:00 +00:00
|
|
|
endif
|
2018-04-13 20:26:38 +00:00
|
|
|
obj-$(CONFIG_NET) += eth_common.o
|
2013-10-17 08:35:00 +00:00
|
|
|
obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o
|
2018-04-13 20:26:38 +00:00
|
|
|
obj-$(CONFIG_NET) += net.o
|
2013-10-17 08:35:00 +00: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-13 20:26:30 +00:00
|
|
|
obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
|
2017-05-10 19:26:06 +00: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
|