derle.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. bsurum=5.1
  2. cd "${SRC}/linux-${bsurum}"
  3. cp "${SRC}/patch-$surum.xz" .
  4. unxz patch-$surum.xz
  5. # güncel kernel yama
  6. patch -p1 -i "patch-${surum}"
  7. # güvenli kernel yaması
  8. #patch -p1 -i "${SRC}/linux-hardened-${surum}.a.patch"
  9. #çalışan sistem aufs yamaları
  10. patch -p1 -i "${SRC}/aufs5.patch"
  11. patch -p1 -i "${SRC}/aufs5-base.patch"
  12. patch -p1 -i "${SRC}/aufs5-kbuild.patch"
  13. patch -p1 -i "${SRC}/aufs5-loopback.patch"
  14. patch -p1 -i "${SRC}/aufs5-mmap.patch"
  15. patch -p1 -i "${SRC}/aufs5-standalone.patch"
  16. patch -p1 -i "${SRC}/tmpfs-idr.patch"
  17. patch -p1 -i "${SRC}/vfs-ino.patch"
  18. #patch -p1 -i "${SRC}/rtlwifi.patch"
  19. cat "${SRC}/kernel-${bsurum}-config" > ./.config
  20. cat "${SRC}/kernel-${bsurum}-config.aufs" >> ./.config
  21. # kernel sürümüne devir sayısı eklemek için
  22. # set extraversion to release
  23. #sed -ri "s|^(EXTRAVERSION =).*|\1 -${devir}|" Makefile
  24. cd "${SRC}/linux-${bsurum}"
  25. export KBUILD_BUILD_USER="milisarge"
  26. export KBUILD_BUILD_HOST="`uname -m`.milislinux.org"
  27. # ayarları onaylama
  28. make olddefconfig
  29. # derleme
  30. make $MAKEJOBS bzImage modules