Skip to content

Commit d1358cc

Browse files
authored
update for deepin kernel build (#51)
Add defconfig file and update scripts to build deepin kernel. Signed-off-by: Lugang He <[email protected]>
1 parent 22852ea commit d1358cc

File tree

5 files changed

+5686
-10
lines changed

5 files changed

+5686
-10
lines changed

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ else # !mixed-build
366366
include $(srctree)/scripts/Kbuild.include
367367

368368
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
369-
KERNELRELEASE = $(call read-file, include/config/kernel.release)
369+
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
370370
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
371371
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
372372

@@ -1168,11 +1168,8 @@ vmlinux: vmlinux.o $(KBUILD_LDS) modpost
11681168
# make sure no implicit rule kicks in
11691169
$(sort $(KBUILD_LDS) $(KBUILD_VMLINUX_OBJS) $(KBUILD_VMLINUX_LIBS)): . ;
11701170

1171-
ifeq ($(origin KERNELRELEASE),file)
1172-
filechk_kernel.release = $(srctree)/scripts/setlocalversion $(srctree)
1173-
else
1174-
filechk_kernel.release = echo $(KERNELRELEASE)
1175-
endif
1171+
filechk_kernel.release = \
1172+
echo "$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
11761173

11771174
# Store (new) KERNELRELEASE string in include/config/kernel.release
11781175
include/config/kernel.release: FORCE

0 commit comments

Comments
 (0)