From: Eunseok Choi Date: Fri, 2 Feb 2018 05:36:32 +0000 (+0900) Subject: [COMMON] support exynos in-kernel firmware X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c9ab418cf083ae181ab05034488612d57403c177;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] support exynos in-kernel firmware Change-Id: I7bc8caa1079d60c40e9ab6643b25be1bab4089d0 Signed-off-by: Eunseok Choi --- diff --git a/firmware/Makefile b/firmware/Makefile index 168094a3fae7..83fbcf2f5275 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -3,6 +3,8 @@ # kbuild file for firmware/ # +CONFIG_EXTRA_FIRMWARE_DIR="firmware" + # Create $(fwabs) from $(CONFIG_EXTRA_FIRMWARE_DIR) -- if it doesn't have a # leading /, it's relative to $(srctree). fwdir := $(subst $(quote),,$(CONFIG_EXTRA_FIRMWARE_DIR)) @@ -42,13 +44,17 @@ wordsize_deps := $(wildcard include/config/64bit.h include/config/32bit.h \ include/config/x86_32.h include/config/x86_64.h \ firmware/Makefile) -$(patsubst %,$(obj)/%.gen.S, $(fw-external-y)): %: $(wordsize_deps) \ - include/config/extra/firmware/dir.h +$(patsubst %,$(obj)/%.gen.S, $(fw-external-y)): %: $(wordsize_deps) $(call cmd,fwbin,$(fwabs)/$(patsubst $(obj)/%.gen.S,%,$@)) # The .o files depend on the binaries directly; the .S files don't. $(patsubst %,$(obj)/%.gen.o, $(fw-external-y)): $(obj)/%.gen.o: $(fwdir)/% +# .ihex is used just as a simple way to hold binary files in a source tree +# where binaries are frowned upon. They are directly converted with objcopy. +$(obj)/%: $(obj)/%.ihex + $(call cmd,ihex) + obj-y += $(patsubst %,%.gen.o, $(fw-external-y)) ifeq ($(KBUILD_SRC),)