mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
buildsystem: introduce $TARGET_KERNEL_PATCH_ARCH
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user