summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/Makefile
diff options
context:
space:
mode:
authorBinbin Zhou <zhoubinbin@loongson.cn>2024-01-17 12:43:00 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2024-01-17 12:43:00 +0800
commit5f346a6e5970229c19c059e8fa62c3dbdde56e7b (patch)
treee313fc1e336a6a67a4d6a30dbadea746b7634fcd /arch/loongarch/Makefile
parentdb8ce2407090f695339e3406a034377dcdc2c942 (diff)
downloadlinux-stable-5f346a6e5970229c19c059e8fa62c3dbdde56e7b.tar.gz
linux-stable-5f346a6e5970229c19c059e8fa62c3dbdde56e7b.tar.bz2
linux-stable-5f346a6e5970229c19c059e8fa62c3dbdde56e7b.zip
LoongArch: Allow device trees be built into the kernel
During the upstream progress of those DT-based drivers, DT properties are changed a lot so very different from those in existing bootloaders. It is inevitably that some existing systems do not provide a standard, canonical device tree to the kernel at boot time. So let's provide a device tree table in the kernel, keyed by the dts filename, containing the relevant DTBs. We can use the built-in dts files as references. Each SoC has only one built-in dts file which describes all possible device information of that SoC, so the dts files are good examples during development. And as a reference, our built-in dts file only enables the most basic bootable combinations (so it is generic enough), acts as an alternative in case the dts in the bootloader is unexpected. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/Makefile')
-rw-r--r--arch/loongarch/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile
index ba45cb7b621c..983aa2b1629a 100644
--- a/arch/loongarch/Makefile
+++ b/arch/loongarch/Makefile
@@ -6,6 +6,7 @@
boot := arch/loongarch/boot
KBUILD_DEFCONFIG := loongson3_defconfig
+KBUILD_DTBS := dtbs
image-name-y := vmlinux
image-name-$(CONFIG_EFI_ZBOOT) := vmlinuz
@@ -144,7 +145,7 @@ endif
vdso-install-y += arch/loongarch/vdso/vdso.so.dbg
-all: $(notdir $(KBUILD_IMAGE))
+all: $(notdir $(KBUILD_IMAGE)) $(KBUILD_DTBS)
vmlinuz.efi: vmlinux.efi