Skip to content

Commit

Permalink
kernel.mk: Fix building rtd1619b (and partial fix for epyc7002)
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Jun 4, 2024
1 parent 677028b commit 5db0caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mk/spksrc.cross-kernel-configure.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ pre_kernel_configure_target: kernel_configure_msg

kernel_configure_target: $(PRE_KERNEL_CONFIGURE_TARGET)
@$(MSG) "Updating kernel Makefile"
@$(RUN) sed -r 's,^CROSS_COMPILE\s*.+,CROSS_COMPILE\t= $(TC_PATH)$(TC_PREFIX),' -i.orig Makefile
@$(RUN) sed -r 's,^ARCH[^_]\s*.+,ARCH\t\t= $(KERNEL_ARCH),' -i Makefile
@$(RUN) sed -r 's,^ARCH[^_]\s*.+,ARCH\t\t= $(KERNEL_ARCH),' -i.ARCH.orig Makefile
@$(RUN) sed -r -e '/^ARCH/a\' -e 'CROSS_COMPILE\t= $(TC_PATH)$(TC_PREFIX)' -i.CROSS_COMPILE.orig Makefile
# Add "+" to EXTRAVERSION for kernels version >= 4.4
ifeq ($(call version_ge, ${TC_KERNEL}, 4.4),1)
@$(RUN) sed -r -e 's,^EXTRAVERSION\s*.+,&+,' -e 's,=\+,= \+,' -i Makefile
Expand Down

0 comments on commit 5db0caf

Please sign in to comment.