libpayload: Add coreboot commonlib/bsd include path
Make BSD part of the coreboot commonlib accessible to libpayload. Change-Id: I09f475d399ab785f3d3ffdb4b42950d2b397845e Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59697 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org>
This commit is contained in:
parent
9f10950426
commit
39b2e7abdd
|
@ -34,6 +34,7 @@ CC_real:=$(CC)
|
|||
endif
|
||||
|
||||
export top := $(CURDIR)
|
||||
export coreboottop ?= $(abspath $(top)/../../)
|
||||
export src := src
|
||||
export srck := $(abspath $(top)/../../util/kconfig)
|
||||
export obj ?= build
|
||||
|
|
|
@ -58,6 +58,7 @@ subdirs-$(CONFIG_LP_LZ4) += liblz4
|
|||
|
||||
INCLUDES := -Iinclude -Iinclude/$(ARCHDIR-y) -I$(obj)
|
||||
INCLUDES += -include include/kconfig.h -include include/compiler.h
|
||||
INCLUDES += -I$(coreboottop)/src/commonlib/bsd/include
|
||||
|
||||
CFLAGS += $(INCLUDES) -Os -pipe -nostdinc -ggdb3
|
||||
CFLAGS += -nostdlib -fno-builtin -ffreestanding -fomit-frame-pointer
|
||||
|
|
|
@ -11,8 +11,6 @@ testobj := $(obj)/tests
|
|||
endif
|
||||
coverage-dir := $(testobj)/coverage_reports
|
||||
|
||||
coreboottop := ../../
|
||||
|
||||
cmockasrc := $(coreboottop)/3rdparty/cmocka
|
||||
cmockaobj := $(objutil)/cmocka
|
||||
CMOCKA_LIB := $(cmockaobj)/src/libcmocka.so
|
||||
|
@ -34,6 +32,7 @@ TEST_CONFIG_ := CONFIG_LP_
|
|||
# Default includes
|
||||
TEST_CFLAGS := -include include/kconfig.h -include include/compiler.h
|
||||
TEST_CFLAGS += -Iinclude -Iinclude/mock
|
||||
TEST_CFLAGS += -I$(coreboottop)/src/commonlib/bsd/include
|
||||
TEST_CFLAGS += -I$(dir $(TEST_KCONFIG_AUTOHEADER))
|
||||
|
||||
# Test specific includes
|
||||
|
|
Loading…
Reference in New Issue