cpu/intel/speedstep: Have nb and sb code provide c5/c6/slfm
[coreboot.git] / payloads / coreinfo / Makefile
blob096e9c60cf4f93a81440048fd441cf001483c737
1 ## SPDX-License-Identifier: GPL-2.0-only
3 unexport $(COREBOOT_EXPORTS)
5 src := $(CURDIR)
6 obj := build
8 srctree := $(src)
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
22 ARCH := x86_32
24 all: real-all
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
39 CONFIG_SHELL := sh
40 KBUILD_DEFCONFIG := configs/defconfig
41 UNAME_RELEASE := $(shell uname -r)
42 HAVE_DOTCONFIG := $(wildcard .config)
43 MAKEFLAGS += -rR --no-print-directory
45 HOSTCC ?= gcc
46 HOSTCXX ?= g++
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
54 real-all: $(TARGET)
56 ifeq ($(CONFIG_LTO),y)
57 CFLAGS += -flto
58 endif
60 else
61 real-all: config
62 endif
64 defaultbuild:
65 $(MAKE) olddefconfig
66 $(MAKE) all
68 $(obj)/config.h:
69 $(MAKE) oldconfig
71 $(shell mkdir -p $(objk)/lxdialog $(KCONFIG_SPLITCONFIG))
73 include $(srck)/Makefile.inc
75 .PHONY: $(PHONY) prepare all real-all defaultbuild
77 else
79 distclean: clean
80 rm -f .config*
82 .PHONY: distclean
83 endif