Compare commits
No commits in common. "ed06d7ca3e13adde806f2605148fd0c6d61f26c8" and "ab9dc96d44d4c0f0cf9f7dc9714bd11ce871439b" have entirely different histories.
ed06d7ca3e
...
ab9dc96d44
0
arch-config/etc/pacman.conf → arch-config/etc/arch-pacman.conf
Normal file → Executable file
0
arch-config/etc/pacman.conf → arch-config/etc/arch-pacman.conf
Normal file → Executable file
@ -1,18 +0,0 @@
|
|||||||
#!/hint/bash
|
|
||||||
# shellcheck disable=2034
|
|
||||||
|
|
||||||
# build for native architecture
|
|
||||||
CFLAGS="-march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions \
|
|
||||||
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
|
|
||||||
-fstack-clash-protection -fcf-protection \
|
|
||||||
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
|
|
||||||
|
|
||||||
RUSTFLAGS="-C opt-level=3 -C target-cpu=native"
|
|
||||||
|
|
||||||
# use all cores
|
|
||||||
MAKEFLAGS="-j$(nproc)"
|
|
||||||
|
|
||||||
# build in RAM
|
|
||||||
BUILDDIR=/tmp/makepkg
|
|
||||||
|
|
||||||
# vim: set ft=sh ts=2 sw=2 et:
|
|
@ -261,6 +261,13 @@ sudo cp -r "$tempdir/arch-config/etc" /
|
|||||||
|
|
||||||
echo Copied folders
|
echo Copied folders
|
||||||
|
|
||||||
|
# NOTE Distro specific stuff
|
||||||
|
# TODO simplify for Arch only
|
||||||
|
distro=$(cat /etc/*-release | grep "^ID=")
|
||||||
|
if [ "$distro" == "ID=arch" ]; then
|
||||||
|
sudo mv /etc/arch-pacman.conf /etc/pacman.conf
|
||||||
|
fi
|
||||||
|
|
||||||
#copy usr stuff
|
#copy usr stuff
|
||||||
sudo cp -r "$tempdir/arch-config/usr" /
|
sudo cp -r "$tempdir/arch-config/usr" /
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user