-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env: Make building Arch Linux packages like other distributions
Signed-off-by: Nathan Chancellor <[email protected]>
- Loading branch information
1 parent
8878233
commit e276c0c
Showing
22 changed files
with
474 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.old |
2 changes: 1 addition & 1 deletion
2
pkgbuilds/linux-mainline-llvm/config → configs/kernel/linux-mainline-llvm.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,7 @@ | ||
#!/usr/bin/env fish | ||
# SPDX-License-Identifier: MIT | ||
# Copyright (C) 2021-2023 Nathan Chancellor | ||
# Copyright (C) 2024 Nathan Chancellor | ||
|
||
function cbl_bld_krnl_pkg -d "Build ClangBuiltLinux Arch Linux kernel package" | ||
in_container_msg -c; or return | ||
|
||
for arg in $argv | ||
switch $arg | ||
case --cfi --cfi-permissive -f --full -l --local --lto -m --menuconfig -u --ubsan-bounds | ||
set -a config_args $arg | ||
case -p --permissive | ||
set -a config_args --cfi-permissive | ||
case '*'debug '*'mainline'*' '*'next'*' | ||
set pkg linux-(string replace 'linux-' '' $arg) | ||
end | ||
end | ||
if not set -q pkg | ||
set pkg linux-mainline-llvm | ||
end | ||
|
||
set pkgroot $ENV_FOLDER/pkgbuilds/$pkg | ||
|
||
pushd $pkgroot; or return | ||
|
||
# Prerequisite: Clean up old kernels | ||
rm -- *.tar.zst | ||
|
||
# Generate .config | ||
cbl_gen_archconfig $config_args $pkg; or return | ||
|
||
# Update the pkgver if using a local tree | ||
if grep -q "file://" PKGBUILD | ||
cbl_upd_krnl_pkgver (basename $PWD) | ||
end | ||
|
||
# Build the kernel | ||
makepkg -C; or return | ||
|
||
echo Run | ||
printf '\n\t$ sudo fish -c "pacman -U %s; and bootctl set-oneshot %s.conf; and reboot"\n\n' (realpath -- *.tar.zst | string replace $ENV_FOLDER \$ENV_FOLDER) $pkg | ||
echo "to install and use new kernel." | ||
|
||
popd | ||
function cbl_bld_krnl_pkg -d "Wrapper for cbl_bld_krnl_pkg.py" | ||
$PYTHON_SCRIPTS_FOLDER/cbl_bld_krnl_pkg.py $argv | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.