mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-27 17:18:53 +00:00
366bba0227
This is a follow-up commit to "Increase default warning level", which overrides Genode's new default warning level for targets contained in higher-level repositories. By explicitly whitelisting all those targets, we can selectively adjust them to the new strictness over time - by looking out for 'CC_CXX_WARN_STRICT' in the target description files. Issue #465
27 lines
745 B
Makefile
27 lines
745 B
Makefile
ifeq ($(called_from_lib_mk),yes)
|
|
|
|
QEMU_CONTRIB_DIR := $(call select_from_ports,qemu-usb)/src/lib/qemu
|
|
QEMU_EMUL_H := $(REP_DIR)/src/lib/qemu-usb/include/qemu_emul.h
|
|
|
|
#
|
|
# Determine the header files included by the contrib code. For each
|
|
# of these header files we create a symlink to 'qemu_emul.h'.
|
|
#
|
|
GEN_INCLUDES := $(shell grep -rIh "^\#include .*" $(QEMU_CONTRIB_DIR) |\
|
|
sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" | sort | uniq)
|
|
#
|
|
# Put Qemu headers in 'GEN_INC' dir
|
|
#
|
|
GEN_INC := $(shell pwd)/include
|
|
GEN_INCLUDES := $(addprefix $(GEN_INC)/,$(GEN_INCLUDES))
|
|
|
|
all: $(GEN_INCLUDES)
|
|
|
|
$(GEN_INCLUDES):
|
|
$(VERBOSE)mkdir -p $(dir $@)
|
|
$(VERBOSE)ln -s $(QEMU_EMUL_H) $@
|
|
|
|
endif
|
|
|
|
CC_CXX_WARN_STRICT =
|