Commit f246ce69 authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

Merge branch 'kernel-modules' into 'master'

Add build routine for kernel modules

See merge request !14
parents ce3480ec 2556cc4d
......@@ -8,7 +8,7 @@ trap 'abort "Aborted."' INT
get_pkg_dir
get_default_branch
while getopts "b:cdghi:k:l:mnp:r:sux" arg; do
while getopts "b:cdghi:k:K:l:mnp:r:sux" arg; do
case "${arg}" in
b) BRANCH="${OPTARG}" ;;
c) CLEAN=true ;;
......@@ -16,6 +16,7 @@ while getopts "b:cdghi:k:l:mnp:r:sux" arg; do
g) PUSH_GIT=true ;;
i) install_pkgs+=("${OPTARG}") ;;
k) custom_repo="${OPTARG}" ;;
K) lists+=("${OPTARG}"); MODULES=true ;;
l) lists+=("${OPTARG}"); INSTALL=true ;;
m) MULTILIB=true ;;
n) INSTALL=true ;;
......
......@@ -24,6 +24,7 @@ build_pkg() {
user_own ${BUILD_DIR}/$1
[[ $INSTALL = true ]] && mp_opts='fsi' || mp_opts='fs'
[[ $MODULES = true ]] && mp_opts='fsr'
chroot ${CHROOT_DIR} sudo -iu builduser chrootbuild $1 $mp_opts
status=$?
[[ $status != 0 ]] && [[ $check = package ]] && abort "Building package [${1//\//}] failed."
......
......@@ -14,6 +14,7 @@ CLEAN=false
PUSH_GIT=false
INSTALL=false
UPDATE=false
MODULES=false
SIGN=false
MULTILIB=false
MIRROR='https://repo.manjaro.org/repo'
......@@ -216,6 +217,7 @@ usage_chrootbuild() {
echo ' (for multiple packages repeat -i flag)'
echo ' -k <repo> Use custom repo:'
echo ' (mobile/kde-unstable)'
echo ' -K <list> Kernel-modules list to build'
echo ' -l <list> List(s) to build'
echo ' (for multiple lists repeat -l flag)'
echo ' -m Build a multilib package'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment