Skip to content

Instantly share code, notes, and snippets.

View mohammedgqudah's full-sized avatar
🎯
Focusing

mqudah mohammedgqudah

🎯
Focusing
  • Jordan, amman
  • 06:57 (UTC +03:00)
View GitHub Profile
@mohammedgqudah
mohammedgqudah / build.sh
Created October 4, 2024 15:49
Compiling Linux v2.6.39 using GCC 14 and Perl v5.40.0
# A workaround I had to do while reading "Linux Kernel Development (3rd Edition)", which uses a *very* old kernel version.
git checkout v2.6.39
cp include/linux/compiler-gcc4.h include/linux/compiler-gcc14.h
# Make a local copy of the patch in this gist
patch -p1 < v2.6-gcc-14.patch
make clean
make defconfig
def car():
print "hi"