#### menuconfig
-If you want to edit the configuration using the kernel's config editor, you can
-do it for the main architecture (which is x86_64 right now). All other configuration
-files will be updated afterwards and potentially prompted for options that diverge
-for other architectures.
+If you want to edit the configuration using the kernel's config editor. All
+configuration files will be updated afterwards and potentially prompted for options
+that diverge for different architectures.
(pakfire-shell)> scripts/configure menuconfig
+Appending the --arch= argument allows you to edit a specific architecture.
+Default is x86_64.
+
#### listnewconfig
This will list all unset options.
# This function runs an interactive "make oldconfig".
function make_config() {
- local arch="x86_64"
- local kernel_arch="x86"
+ local arch="${1}"
+ shift
+
+ # Detect kernel arch
+ local kernel_arch="$(get_kernel_arch "${arch}")"
local flavour="default"
local config_in=$(mktemp)
rm -rf ${tmpdir}
}
+ARCH="x86_64"
KERNEL_DIR="$(search_kernel_dir)"
# Parse commandline.
;;
listnewconfig|menuconfig|merge|oldconfig|olddefconfig)
action=${arg}
- break
+ ;;
+
+ # Parse switches
+ --arch=*)
+ ARCH="${arg#*=}"
+
+ if ! get_platform "${ARCH}" &>/dev/null; then
+ echo "Unknown architecture: ${ARCH}" >&2
+ exit 2
+ fi
;;
esac
done
exit $?
;;
listnewconfig|menuconfig|oldconfig|olddefconfig)
- make_config "${action}"
+ make_config "${ARCH}" "${action}"
exit $?
;;
esac