feat: add zenpower & upd it87
This commit is contained in:
parent
3fb42396fc
commit
380e134ccd
18
PKGBUILD
18
PKGBUILD
@ -267,6 +267,11 @@ prepare() {
|
|||||||
|
|
||||||
cd ${srcdir}/$_srcname
|
cd ${srcdir}/$_srcname
|
||||||
|
|
||||||
|
cp -f ../zenpower.c drivers/hwmon/
|
||||||
|
sed -i -E 's/(endif # ACPI)/config SENSORS_ZENPOWER\n\ttristate "AMD ZENPOWER"\n\tdepends on X86\n\n\1/' drivers/hwmon/Kconfig
|
||||||
|
echo 'obj-$(CONFIG_SENSORS_ZENPOWER) += zenpower.o' >> drivers/hwmon/Makefile
|
||||||
|
cp -f {../compat.h,../it87.c} drivers/hwmon/
|
||||||
|
|
||||||
echo "Setting version..."
|
echo "Setting version..."
|
||||||
echo "-$pkgrel" > localversion.10-pkgrel
|
echo "-$pkgrel" > localversion.10-pkgrel
|
||||||
echo "${pkgbase#linux}" > localversion.20-pkgname
|
echo "${pkgbase#linux}" > localversion.20-pkgname
|
||||||
@ -284,6 +289,8 @@ prepare() {
|
|||||||
echo "Setting config..."
|
echo "Setting config..."
|
||||||
cp ../config .config
|
cp ../config .config
|
||||||
|
|
||||||
|
scripts/config -e SENSORS_ZENPOWER
|
||||||
|
|
||||||
### Select CPU optimization
|
### Select CPU optimization
|
||||||
if [ -n "$_processor_opt" ]; then
|
if [ -n "$_processor_opt" ]; then
|
||||||
MARCH="${_processor_opt^^}"
|
MARCH="${_processor_opt^^}"
|
||||||
@ -814,6 +821,12 @@ _package-nvidia(){
|
|||||||
find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +
|
find "$pkgdir" -name '*.ko' -exec zstd --rm -10 {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
|
source+=(
|
||||||
|
https://git.exozy.me/Ta180m/zenpower3/raw/branch/master/zenpower.c
|
||||||
|
https://raw.githubusercontent.com/frankcrawford/it87/master/it87.c
|
||||||
|
https://raw.githubusercontent.com/frankcrawford/it87/master/compat.h
|
||||||
|
)
|
||||||
|
|
||||||
pkgname=("$pkgbase" "$pkgbase-headers")
|
pkgname=("$pkgbase" "$pkgbase-headers")
|
||||||
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
|
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
|
||||||
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
|
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
|
||||||
@ -828,4 +841,7 @@ b2sums=('d6f58bfae29239f985c1aa329b19c2fdea1c08c79e819e60f85359e9ef00e97a7f72d74
|
|||||||
'5ddb5dcdb79354268e69d01523f06d5071538ba53171adcef0dd455b286df7785611d64f13b3aae06ac298cc60d990ebfa7b11d75dec9ab4a256b431de549483'
|
'5ddb5dcdb79354268e69d01523f06d5071538ba53171adcef0dd455b286df7785611d64f13b3aae06ac298cc60d990ebfa7b11d75dec9ab4a256b431de549483'
|
||||||
'11d2003b7d71258c4ca71d71c6b388f00fe9a2ddddc0270e304148396dadfd787a6cac1363934f37d0bfb098c7f5851a02ecb770e9663ffe57ff60746d532bd0'
|
'11d2003b7d71258c4ca71d71c6b388f00fe9a2ddddc0270e304148396dadfd787a6cac1363934f37d0bfb098c7f5851a02ecb770e9663ffe57ff60746d532bd0'
|
||||||
'a5e5c6ad326c2e3522ff6d6208e87c06a1d545dfecc47cd50dc1176dc5409cc8a2ae380e7bc0f2a191d835558fb5c7d5b7de1b2e250b019b7f45088a60bac0cf'
|
'a5e5c6ad326c2e3522ff6d6208e87c06a1d545dfecc47cd50dc1176dc5409cc8a2ae380e7bc0f2a191d835558fb5c7d5b7de1b2e250b019b7f45088a60bac0cf'
|
||||||
'900ab144d6b7339c926f229b96891fb2862020b6c27716a7c75ddcf6e92f7c129bc823ef604f45b81fc848012263c7933ce4c10ca75676323315b5f2411ab37e')
|
'900ab144d6b7339c926f229b96891fb2862020b6c27716a7c75ddcf6e92f7c129bc823ef604f45b81fc848012263c7933ce4c10ca75676323315b5f2411ab37e'
|
||||||
|
'9d1e2b0cfbff5ed075fdbd243251e807b7253e6b6bc760d8d2e76deeb5b4d0d805d9dbf33fa47eeb2623cf125715aa8ebfc6e352dfc45890591daa7e686693b0'
|
||||||
|
'e30547e88d45648297e1936ba8033b38bfc344792d4073175b2d7c5c569e80e75f650964ad34949fe6730962a7f10fd7d4b9933f854ce159f31e3e51b8666618'
|
||||||
|
'4905268d68ff9a1024114ca289133797432da08b103dd3a214be90b79f1acde3b0fc2740dab53cf3a291cc1909ac98f371f894d6db60a6e5bf089136750b7bdb')
|
||||||
|
Loading…
Reference in New Issue
Block a user