• Masahiro Yamada's avatar
    kbuild: use Linux Kernel build scripts · 6825a95b
    Masahiro Yamada authored
    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: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    Tested-by: default avatarGerhard Sittig <gsi@denx.de>
    6825a95b
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
nand_spl Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
spl Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
CREDITS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
boards.cfg Loading commit data...
config.mk Loading commit data...
mkconfig Loading commit data...
rules.mk Loading commit data...
snapshot.commit Loading commit data...