mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-29 05:18:51 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
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>
28 lines
492 B
Makefile
28 lines
492 B
Makefile
#
|
|
# (C) Copyright 2000-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
# ccflags-y += -DET_DEBUG
|
|
|
|
extra-y += start.o
|
|
extra-y += traps.o
|
|
obj-y += bedbug_860.o
|
|
obj-y += commproc.o
|
|
obj-y += cpu.o
|
|
obj-y += cpu_init.o
|
|
obj-y += fec.o
|
|
obj-$(CONFIG_OF_LIBFDT) += fdt.o
|
|
obj-y += i2c.o
|
|
obj-y += interrupts.o
|
|
obj-y += scc.o
|
|
obj-y += serial.o
|
|
obj-y += speed.o
|
|
obj-y += spi.o
|
|
obj-y += upatch.o
|
|
obj-y += video.o
|
|
obj-y += kgdb.o
|
|
obj-y += plprcr_write.o
|