diff --git a/nvidia-pikaos-kernel-module/Makefiletmp b/linux-nvidia-modules/Makefiletmp similarity index 100% rename from nvidia-pikaos-kernel-module/Makefiletmp rename to linux-nvidia-modules/Makefiletmp diff --git a/nvidia-pikaos-kernel-module/blacklist-pika-nouveau.conf b/linux-nvidia-modules/blacklist-pika-nouveau.conf similarity index 100% rename from nvidia-pikaos-kernel-module/blacklist-pika-nouveau.conf rename to linux-nvidia-modules/blacklist-pika-nouveau.conf diff --git a/nvidia-pikaos-kernel-module/debian/copyright b/linux-nvidia-modules/debian/copyright similarity index 100% rename from nvidia-pikaos-kernel-module/debian/copyright rename to linux-nvidia-modules/debian/copyright diff --git a/nvidia-pikaos-kernel-module/debian/postinst b/linux-nvidia-modules/debian/postinst similarity index 100% rename from nvidia-pikaos-kernel-module/debian/postinst rename to linux-nvidia-modules/debian/postinst diff --git a/nvidia-pikaos-kernel-module/debian/postrm b/linux-nvidia-modules/debian/postrm similarity index 100% rename from nvidia-pikaos-kernel-module/debian/postrm rename to linux-nvidia-modules/debian/postrm diff --git a/nvidia-pikaos-kernel-module/debian/rules b/linux-nvidia-modules/debian/rules similarity index 100% rename from nvidia-pikaos-kernel-module/debian/rules rename to linux-nvidia-modules/debian/rules diff --git a/nvidia-pikaos-kernel-module/debian/source/format b/linux-nvidia-modules/debian/source/format similarity index 100% rename from nvidia-pikaos-kernel-module/debian/source/format rename to linux-nvidia-modules/debian/source/format diff --git a/nvidia-pikaos-kernel-module/pika-nvidia.conf b/linux-nvidia-modules/pika-nvidia.conf similarity index 100% rename from nvidia-pikaos-kernel-module/pika-nvidia.conf rename to linux-nvidia-modules/pika-nvidia.conf diff --git a/main.sh b/main.sh index 6548f15..645701a 100755 --- a/main.sh +++ b/main.sh @@ -1,19 +1,19 @@ #! /bin/bash DRIVER=535 -chmod +x ./nvidia-pikaos-kernel-module/get_pwd.sh +chmod +x ./linux-nvidia-modules/get_pwd.sh -echo "$(apt-cache show nvidia-driver-$DRIVER | grep Version: | head -n1 | cut -f2 -d":" | cut -f1,2,3 -d"." | cut -f1 -d"-" | tr -d ' ')" > ./nvidia-pikaos-kernel-module/DRIVER -echo "$(apt-cache show kernel-pika | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3,4 -d"-" | tr -d ' ')" > ./nvidia-pikaos-kernel-module/KERNEL -echo "$(apt-cache show nvidia-kernel-source-$DRIVER | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ')" > ./nvidia-pikaos-kernel-module/DRIVER_VERSION +echo "$(apt-cache show nvidia-driver-$DRIVER | grep Version: | head -n1 | cut -f2 -d":" | cut -f1,2,3 -d"." | cut -f1 -d"-" | tr -d ' ')" > ./linux-nvidia-modules/DRIVER +echo "$(apt-cache show kernel-pika | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3,4 -d"-" | tr -d ' ')" > ./linux-nvidia-modules/KERNEL +echo "$(apt-cache show nvidia-kernel-source-$DRIVER | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ')" > ./linux-nvidia-modules/DRIVER_VERSION -cd ./nvidia-pikaos-kernel-module +cd ./linux-nvidia-modules -echo -e "nvidia-pikaos-kernel-module ($(cat ./DRIVER)-$(cat ./KERNEL)-99pika1.mantic) mantic; urgency=medium\n\n * New Release\n\n -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200" > debian/changelog +echo -e "linux-nvidia-modules ($(cat ./DRIVER)-$(cat ./KERNEL)-99pika1.mantic) mantic; urgency=medium\n\n * New Release\n\n -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200" > debian/changelog -echo -e "Source: nvidia-pikaos-kernel-module\nSection: graphics\nPriority: optional\nMaintainer: Ward Nakchbandi \nStandards-Version: 4.6.1\nBuild-Depends: debhelper-compat (= 13), linux-image-$(cat ./KERNEL), linux-headers-$(cat ./KERNEL), dkms, fakeroot\nRules-Requires-Root: no\n\nPackage: nvidia-$(cat ./KERNEL)-module-$DRIVER\nArchitecture: linux-any\nDepends: linux-image-$(cat ./KERNEL), linux-headers-$(cat ./KERNEL), $(apt-cache show nvidia-dkms-$DRIVER | grep Depends: | head -n1 | cut -f2 -d":")\nConflicts: nvidia-dkms-$DRIVER (= $(cat DRIVER_VERSION))\nProvides: nvidia-dkms-$DRIVER (= $(cat DRIVER_VERSION))\nReplaces: nvidia-dkms-$DRIVER (= $(cat DRIVER_VERSION))\nDescription: Prebuilt Nvidia module for PikaOS kernel\n\nPackage: nvidia-pika-kernel-module-$DRIVER\nArchitecture: linux-any -Depends: nvidia-$(cat ./KERNEL)-module-$DRIVER $(echo '(= ${binary:Version})')\nDescription: DKMS NVIDIA PLACEHOLDER" > ./debian/control -echo -e "usr\netc" > ./debian/nvidia-$(cat ./KERNEL)-module-$DRIVER.install +echo -e "Source: linux-nvidia-modules\nSection: graphics\nPriority: optional\nMaintainer: Ward Nakchbandi \nStandards-Version: 4.6.1\nBuild-Depends: debhelper-compat (= 13), linux-image-$(cat ./KERNEL), linux-headers-$(cat ./KERNEL), dkms, fakeroot\nRules-Requires-Root: no\n\nPackage: linux-modules-nvidia-$DRIVER-$(cat ./KERNEL)\nArchitecture: linux-any\nDepends: linux-image-$(cat ./KERNEL), linux-headers-$(cat ./KERNEL), $(apt-cache show nvidia-dkms-$DRIVER | grep Depends: | head -n1 | cut -f2 -d":")\nConflicts: nvidia-6.5.0-pikaos-module-535, nvidia-$(cat ./KERNEL)-module-$DRIVER, nvidia-dkms-$DRIVER (= $(cat DRIVER_VERSION))\nProvides: nvidia-dkms-$DRIVER (= $(cat DRIVER_VERSION))\nReplaces: nvidia-dkms-$DRIVER (= $(cat DRIVER_VERSION))\nDescription: Prebuilt Nvidia module for PikaOS kernel\n\nPackage: nvidia-pika-kernel-module-$DRIVER\nArchitecture: linux-any +Depends: linux-modules-nvidia-$DRIVER-$(cat ./KERNEL) $(echo '(= ${binary:Version})')\nDescription: DKMS NVIDIA PLACEHOLDER" > ./debian/control +echo -e "usr\netc" > ./debian/linux-modules-nvidia-$DRIVER-$(cat ./KERNEL).install echo -e "DRIVER=$(cat ./DRIVER)\nKERNEL=$(cat ./KERNEL)\nVERSION=$(cat ./DRIVER_VERSION)\nMK_WORKDIR=$(env | grep -w "PWD" | cut -c5-)\nCARCH=x86_64" > ./Makefile cat ./Makefiletmp >> ./Makefile