1 ## SPDX-License-Identifier: GPL-2.0-only
3 unexport $(COREBOOT_EXPORTS
)
9 srck
:= $(src
)/..
/..
/util
/kconfig
10 objk
:= $(src
)/build
/util
/kconfig
12 LIBPAYLOAD_DEFCONFIG ?
= $(src
)/..
/libpayload
/configs
/defconfig-tinycurses
14 PAYLOAD_DEPS
:= $(obj
)/config.h
16 OBJECTS
= cpuinfo_module.o cpuid.S.o pci_module.o coreboot_module.o \
17 nvram_module.o bootlog_module.o ramdump_module.o \
18 multiboot_module.o cbfs_module.o timestamps_module.o coreinfo.o
19 OBJS
= $(patsubst %,$(obj
)/%,$(OBJECTS
))
20 TARGET
= $(obj
)/coreinfo.elf
26 include ..
/libpayload
/Makefile.payload
28 ifeq ($(filter %clean,$(MAKECMDGOALS
)),)
29 export KERNELVERSION
:= 0.1.0
30 export KCONFIG_AUTOHEADER
:= $(obj
)/config.h
31 export KCONFIG_AUTOCONFIG
:= $(obj
)/auto.conf
32 export KCONFIG_DEPENDENCIES
:= $(obj
)/auto.conf.cmd
33 export KCONFIG_SPLITCONFIG
:= $(obj
)/config
34 export KCONFIG_TRISTATE
:= $(obj
)/tristate.conf
35 export KCONFIG_CONFIG
:= $(CURDIR
)/.config
36 export KCONFIG_NEGATIVES
:= 1
37 export KBUILD_KCONFIG
:= Kconfig
40 KBUILD_DEFCONFIG
:= configs
/defconfig
41 UNAME_RELEASE
:= $(shell uname
-r
)
42 HAVE_DOTCONFIG
:= $(wildcard .config
)
43 MAKEFLAGS
+= -rR
--no-print-directory
47 HOSTCFLAGS
:= -I
$(srck
) -I
$(objk
)
48 HOSTCXXFLAGS
:= -I
$(srck
) -I
$(objk
)
50 CFLAGS
+= -I
$(obj
) -I..
/..
/src
/commonlib
/include
52 ifneq ($(strip $(HAVE_DOTCONFIG
)),)
53 include $(src
)/.config
56 ifeq ($(CONFIG_LTO
),y
)
71 $(shell mkdir
-p
$(objk
)/lxdialog
$(KCONFIG_SPLITCONFIG
))
73 include $(srck
)/Makefile.inc
75 .PHONY
: $(PHONY
) prepare
all real-all defaultbuild