buildsystem: introduce $TARGET_KERNEL_PATCH_ARCH

This commit is contained in:
Alex Bee
2021-06-11 18:06:58 +02:00
parent f547d15d69
commit f88d19b575
11 changed files with 15 additions and 13 deletions

View File

@@ -763,8 +763,8 @@ check_arch() {
linux_config_dir="${PROJECT_DIR}/${PROJECT}/linux"
fi
if [ ! -e "$linux_config_dir/linux.${TARGET_PATCH_ARCH:-$TARGET_ARCH}.conf" ] &&
! ls "$linux_config_dir/"*/linux.${TARGET_PATCH_ARCH:-$TARGET_ARCH}.conf &>/dev/null; then
if [ ! -e "$linux_config_dir/linux.${TARGET_KERNEL_PATCH_ARCH:-$TARGET_ARCH}.conf" ] &&
! ls "$linux_config_dir/"*/linux.${TARGET_KERNEL_PATCH_ARCH:-$TARGET_ARCH}.conf &>/dev/null; then
arch_err_msg="\n $dashes$dashes$dashes"
arch_err_msg="${arch_err_msg}\n ERROR: Architecture not found, use a valid Architecture"
arch_err_msg="${arch_err_msg}\n for your project or create a new config"
@@ -1246,7 +1246,7 @@ kernel_config_path() {
pkg_linux_version="$(get_pkg_version linux)"
pkg_linux_dir="$(get_pkg_directory linux)"
config_name="linux.${TARGET_PATCH_ARCH:-$TARGET_ARCH}.conf"
config_name="linux.${TARGET_KERNEL_PATCH_ARCH:-$TARGET_ARCH}.conf"
for cfg in $PROJECT_DIR/$PROJECT/devices/$DEVICE/linux/$pkg_linux_version/$config_name \
$PROJECT_DIR/$PROJECT/devices/$DEVICE/linux/$LINUX/$config_name \
@@ -1268,7 +1268,7 @@ kernel_config_path() {
kernel_initramfs_confs() {
local config_name cfg confs
config_name="initramfs.${TARGET_PATCH_ARCH:-$TARGET_ARCH}.conf"
config_name="initramfs.${TARGET_KERNEL_PATCH_ARCH:-$TARGET_ARCH}.conf"
confs="$(get_pkg_directory initramfs)/config/initramfs.conf"
for cfg in $PROJECT_DIR/$PROJECT/packages/initramfs/config/$config_name \