mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / payloads / coreinfo / Makefile
blobc8bf8f09fcc6969a0008f61624dd65ca74d8edc9
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 all: real-all
24 include ../libpayload/Makefile.payload
26 ifeq ($(filter %clean,$(MAKECMDGOALS)),)
27 export KERNELVERSION := 0.1.0
28 export KCONFIG_AUTOHEADER := $(obj)/config.h
29 export KCONFIG_AUTOCONFIG := $(obj)/auto.conf
30 export KCONFIG_DEPENDENCIES := $(obj)/auto.conf.cmd
31 export KCONFIG_SPLITCONFIG := $(obj)/config
32 export KCONFIG_TRISTATE := $(obj)/tristate.conf
33 export KCONFIG_CONFIG := $(CURDIR)/.config
34 export KCONFIG_NEGATIVES := 1
35 export KBUILD_KCONFIG := Kconfig
37 CONFIG_SHELL := sh
38 KBUILD_DEFCONFIG := configs/defconfig
39 UNAME_RELEASE := $(shell uname -r)
40 HAVE_DOTCONFIG := $(wildcard .config)
41 MAKEFLAGS += -rR --no-print-directory
43 HOSTCC ?= gcc
44 HOSTCXX ?= g++
45 HOSTCFLAGS := -I$(srck) -I$(objk)
46 HOSTCXXFLAGS := -I$(srck) -I$(objk)
48 CFLAGS += -I$(obj) -I../../src/commonlib/include
50 ifneq ($(strip $(HAVE_DOTCONFIG)),)
51 include $(src)/.config
52 real-all: $(TARGET)
54 ifeq ($(CONFIG_LTO),y)
55 CFLAGS += -flto
56 endif
58 else
59 real-all: config
60 endif
62 defaultbuild:
63 $(MAKE) olddefconfig
64 $(MAKE) all
66 $(obj)/config.h:
67 $(MAKE) oldconfig
69 $(shell mkdir -p $(objk)/lxdialog $(KCONFIG_SPLITCONFIG))
71 include $(srck)/Makefile.mk
73 .PHONY: $(PHONY) prepare all real-all defaultbuild
75 else
77 distclean: clean
78 rm -f .config*
80 .PHONY: distclean
81 endif