2006-03-12 01:12:27 +00:00
|
|
|
#
|
|
|
|
# U-boot Makefile
|
|
|
|
#
|
2008-02-19 05:54:20 +00:00
|
|
|
# Copyright (c) 2005-2008 Analog Devices Inc.
|
2006-03-12 01:12:27 +00:00
|
|
|
#
|
2007-03-21 23:13:12 +00:00
|
|
|
# (C) Copyright 2000-2006
|
2006-03-12 01:12:27 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2006-03-12 01:12:27 +00:00
|
|
|
#
|
|
|
|
|
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
|
|
|
# Unnecessary.
|
|
|
|
# Use CONFIG_SYS_BOARD instead of BFIN_BOARD_NAME
|
|
|
|
# and delete this.
|
|
|
|
ccflags-y += -DBFIN_BOARD_NAME='"$(BOARD)"'
|
2008-02-19 05:54:20 +00:00
|
|
|
|
2013-10-21 02:53:36 +00:00
|
|
|
obj-y += ins.o
|
|
|
|
obj-y += memcmp.o
|
|
|
|
obj-y += memcpy.o
|
|
|
|
obj-y += memmove.o
|
|
|
|
obj-y += memset.o
|
|
|
|
obj-y += outs.o
|
|
|
|
obj-$(CONFIG_CMD_KGDB) += __kgdb.o
|
|
|
|
obj-y += board.o
|
|
|
|
obj-y += boot.o
|
|
|
|
obj-y += cache.o
|
|
|
|
obj-y += clocks.o
|
|
|
|
obj-$(CONFIG_CMD_CACHE_DUMP) += cmd_cache_dump.o
|
|
|
|
obj-$(CONFIG_CMD_KGDB) += kgdb.o
|
|
|
|
obj-y += muldi3.o
|
|
|
|
obj-$(CONFIG_HAS_POST) += post.o
|
|
|
|
obj-y += string.o
|