Skip to content

Commit

Permalink
meson-s4t7: Fix custom_kernel_config: hash modification has to happen…
Browse files Browse the repository at this point in the history
… inside the first function call

Will be ignored on second time the function is called
  • Loading branch information
ColorfulRhino authored and igorpecovnik committed Mar 30, 2024
1 parent ee8a3d9 commit 6ced5cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/sources/families/meson-s4t7.conf
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ function custom_kernel_config__add_khadas_common_drivers() {

# Hack to ensure that we will recreate kernel if common_drivers source changes
kernel_config_modifying_hashes+=( "khadas_common_drivers=${GIT_INFO_COMMON_DRIVERS[SHA1]}" )

# 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.
kernel_config_modifying_hashes+=("CONFIG_DEBUG_KERNEL=y" "CONFIG_EXPERT=y" "CONFIG_EMBEDDED=y")
else
# Unfortunately, debug kernel has to be enabled to make khadas_common_drivers compile
display_alert "Enabling kernel config" "DEBUG_KERNEL=y, EXPERT=y, EMBEDDED=y to fix khadas_common_drivers compilation" "info"
kernel_config_modifying_hashes+=("CONFIG_DEBUG_KERNEL=y" "CONFIG_EXPERT=y" "CONFIG_EMBEDDED=y")
kernel_config_set_y DEBUG_KERNEL
kernel_config_set_y EXPERT
kernel_config_set_y EMBEDDED
Expand Down

0 comments on commit 6ced5cc

Please sign in to comment.