1
0
Fork 0
remarkable-uboot/arch
Masahiro Yamada 6825a95b0b 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-19 11:07:50 -05:00
..
arc arc: add library functions 2014-02-07 08:14:32 -05:00
arm kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
avr32 avr32: delete unused header files 2014-01-24 16:59:07 -05:00
blackfin kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
m68k kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
microblaze microblaze: remove an empty file arch/microblaze/lib/time.c 2014-02-19 10:47:47 -05:00
mips kbuild: change out-of-tree build 2014-02-19 11:07:50 -05:00
nds32 kbuild: add dummy obj-y to create built-in.o 2014-02-19 11:07:50 -05:00
nios2 nios2: convert makefiles to Kbuild style 2013-11-01 11:42:11 -04:00
openrisc openrisc: convert makefiles to Kbuild style 2013-10-31 13:26:45 -04:00
powerpc kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
sandbox kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05:00
sh sh: sh2: Remove CONFIG_SH2A definition from asm/processor.h 2014-01-09 13:22:22 +09:00
sparc kbuild: change out-of-tree build 2014-02-19 11:07:50 -05:00
x86 kbuild: change out-of-tree build 2014-02-19 11:07:50 -05:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00