mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
drop $MAINBOARD to simplify build process
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@51 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
8e23c524b1
commit
b68f47476f
5 changed files with 24 additions and 9 deletions
8
Makefile
8
Makefile
|
@ -356,7 +356,6 @@ ifeq ($(config-targets),1)
|
|||
# LBBUILD_DEFCONFIG may point out an alternative default configuration
|
||||
# used for 'make defconfig'
|
||||
# The ? makes the error go away if configuration has been done yet.
|
||||
include $(srctree)/mainboard/$(MAINBOARD)/Makefil?
|
||||
|
||||
export LBBUILD_DEFCONFIG
|
||||
|
||||
|
@ -389,7 +388,6 @@ include .config
|
|||
# If kconfig.d is missing then we are probarly in a cleaned tree so
|
||||
# we execute the config step to be sure to catch updated Kconfig files
|
||||
include/linuxbios/autoconf.h: .kconfig.d .config
|
||||
$(Q)mkdir -p include/linux
|
||||
$(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig
|
||||
else
|
||||
# Dummy target needed, because used as prerequisite
|
||||
|
@ -422,8 +420,6 @@ ifdef CONFIG_DEBUG_INFO
|
|||
CFLAGS += -g
|
||||
endif
|
||||
|
||||
include $(srctree)/mainboard/$(MAINBOARD)/Makefile
|
||||
|
||||
# mainboard Makefile may override CC so keep this after mainboard Makefile is included
|
||||
#NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
||||
NOSTDINC_FLAGS += -isystem $(shell $(CC) -print-file-name=include)
|
||||
|
@ -443,7 +439,7 @@ CFLAGS += $(call cc-option,-Wno-pointer-sign,)
|
|||
export LBBUILD_IMAGE ?= linuxbios.rom startup_code.rom
|
||||
|
||||
|
||||
core-y := mainboard/$(MAINBOARD)/
|
||||
core-y := mainboard/
|
||||
ifeq ($(LBBUILD_COMPRESSORS),)
|
||||
core-y += compressors
|
||||
|
||||
|
@ -481,7 +477,7 @@ linuxbios-alldirs := $(sort $(linuxbios-dirs))
|
|||
linuxbios-init := $(head-y) $(init-y)
|
||||
linuxbios-main := $(core-y) $(libs-y) $(drivers-y) $(net-y)
|
||||
linuxbios-all := $(linuxbios-init) $(linuxbios-main)
|
||||
linuxbios-lds := mainboard/$(MAINBOARD)/linuxbios.lds
|
||||
#linuxbios-lds := mainboard/$(MAINBOARD)/linuxbios.lds
|
||||
|
||||
# Rule to link vmlinux - also used during CONFIG_KALLSYMS
|
||||
# May be overridden by arch/$(ARCH)/Makefile
|
||||
|
|
|
@ -2,7 +2,7 @@ choice
|
|||
prompt "Board vendor"
|
||||
default EMULATION
|
||||
|
||||
config EMULATION
|
||||
config VENDOR_EMULATION
|
||||
bool "Emulated systems"
|
||||
help
|
||||
Select this option for various system emulators, such as QEMU.
|
||||
|
@ -19,4 +19,7 @@ config CRAY
|
|||
|
||||
endchoice
|
||||
|
||||
|
||||
source "mainboard/emulation/Kconfig"
|
||||
|
||||
|
||||
|
|
8
mainboard/Makefile
Normal file
8
mainboard/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# Makefile for LinuxBIOS mainboard vendors
|
||||
#
|
||||
# (c) 2006 coresystems GmbH
|
||||
#
|
||||
|
||||
obj-$(CONFIG_VENDOR_EMULATION) += emulation/
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
choice
|
||||
prompt "Board model"
|
||||
depends on EMULATION
|
||||
depends on VENDOR_EMULATION
|
||||
|
||||
config EMULATION_QEMU_X86
|
||||
config BOARD_EMULATION_QEMU_X86
|
||||
bool "x86 QEMU"
|
||||
help
|
||||
x86 QEMU bla bla bla
|
||||
|
|
8
mainboard/emulation/Makefile
Normal file
8
mainboard/emulation/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
#
|
||||
# Makefile for LinuxBIOS mainboard vendors
|
||||
#
|
||||
# (c) 2006 coresystems GmbH
|
||||
#
|
||||
|
||||
obj-$(CONFIG_BOARD_EMULATION_QEMU_X86) += qemu-i386/
|
||||
|
Loading…
Add table
Reference in a new issue