--- zzzz-none-000/linux-4.4.271/scripts/Makefile.lib 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/scripts/Makefile.lib 2023-04-19 10:22:30.000000000 +0000 @@ -129,6 +129,12 @@ $(CFLAGS_KASAN), $(CFLAGS_KASAN_NOSANITIZE)) endif +ifeq ($(CONFIG_KCOV),y) +_c_flags += $(if $(patsubst n%,, \ + $(KCOV_INSTRUMENT_$(basetarget).o)$(KCOV_INSTRUMENT)y), \ + $(CFLAGS_KCOV)) +endif + # If building the kernel in a separate objtree expand all occurrences # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/'). @@ -165,6 +171,29 @@ -I$(srctree)/drivers/of/testcase-data \ -undef -D__DTS__ +#Add DDR profiling for different DDR size in dtsi +ifeq ($(CONFIG_IPQ_MEM_PROFILE),256) +dtc_cpp_flags += -D __IPQ_MEM_PROFILE_256_MB__ +else ifeq ($(CONFIG_IPQ_FLASH_16M_PROFILE),y) +dtc_cpp_flags += -D __IPQ_MEM_PROFILE_256_MB__ +else ifeq ($(CONFIG_IPQ_MEM_PROFILE),512) +dtc_cpp_flags += -D __IPQ_MEM_PROFILE_512_MB__ +endif + +# Enable qseecom and tzapp node only when CONFIG_QSEECOM is deinfed +# and when 16M profile is not selected +ifneq ($(CONFIG_IPQ_FLASH_16M_PROFILE),y) +ifneq ($(CONFIG_QSEECOM),n) +dtc_cpp_flags += -D ENABLE_QSEECOM +endif +endif + +#MHI PCI dtsi changes +ifeq ($(CONFIG_CNSS2),y) +dtc_cpp_flags += -D __CNSS2__ +else +endif + # Finds the multi-part object the current object will be linked into modname-multi = $(sort $(foreach m,$(multi-used),\ $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=)))) @@ -324,7 +353,7 @@ quiet_cmd_lzma = LZMA $@ cmd_lzma = (cat $(filter-out FORCE,$^) | \ - lzma -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ + lzma e -d20 -lc1 -lp2 -pb2 -eos -si -so && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ (rm -f $@ ; false) quiet_cmd_lzo = LZO $@