Skip to content

Commit 6ced5cc

Browse files
ColorfulRhinoigorpecovnik
authored andcommitted
meson-s4t7: Fix custom_kernel_config: hash modification has to happen inside the first function call
Will be ignored on second time the function is called
1 parent ee8a3d9 commit 6ced5cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/sources/families/meson-s4t7.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ function custom_kernel_config__add_khadas_common_drivers() {
127127

128128
# Hack to ensure that we will recreate kernel if common_drivers source changes
129129
kernel_config_modifying_hashes+=( "khadas_common_drivers=${GIT_INFO_COMMON_DRIVERS[SHA1]}" )
130+
131+
# viraniac: kernel_config_modifying_hashes is only needed during first call of this function to calculate kernel artifact version string. It serves no purpose whatsoever during second call.
132+
kernel_config_modifying_hashes+=("CONFIG_DEBUG_KERNEL=y" "CONFIG_EXPERT=y" "CONFIG_EMBEDDED=y")
130133
else
131134
# Unfortunately, debug kernel has to be enabled to make khadas_common_drivers compile
132135
display_alert "Enabling kernel config" "DEBUG_KERNEL=y, EXPERT=y, EMBEDDED=y to fix khadas_common_drivers compilation" "info"
133-
kernel_config_modifying_hashes+=("CONFIG_DEBUG_KERNEL=y" "CONFIG_EXPERT=y" "CONFIG_EMBEDDED=y")
134136
kernel_config_set_y DEBUG_KERNEL
135137
kernel_config_set_y EXPERT
136138
kernel_config_set_y EMBEDDED

0 commit comments

Comments
 (0)