script: Add Makefile rule and library

Make the copy of Makefile.build and Makefile.lib from
kernel to modify them as per OOT DTBs compilation requirements.
This copy is done to avoid any change in the kernel repo.

bug 3680329

Change-Id: I782c6aae67c85b7d5363177014468b3b3744bfbb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2734084
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Laxman Dewangan
2022-06-23 06:12:29 +00:00
committed by mobile promotions
parent 6297198ef4
commit a7fc1600d8
3 changed files with 1094 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ cmd_and_fixdep = \
$(objtree)/scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\
rm -f $(depfile)
include $(srctree)/scripts/Makefile.lib
include $(oottree)/scripts/Makefile.lib
oot-dtstree = $(oottree)/arch/arm64/boot/dts/nvidia
@@ -26,6 +26,8 @@ dtb-y := $(addprefix nvidia/,$(dtb-y))
dtbo-y := $(addprefix nvidia/,$(dtbo-y))
endif
DTC_INCLUDE := $(oottree)/include
DTB_LIST += $(dtb-y)
DTBO_LIST += $(dtbo-y)
DTB_OBJS := $(addprefix $(obj)/,$(DTB_LIST))