opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

version.awk (272B)


      1 /^VERSION = /    { version = $3 }
      2 /^PATCHLEVEL = / { patchlevel = $3 }
      3 /^SUBLEVEL = /   { sublevel = $3 }
      4 
      5 END {
      6 	print "#define LINUX_VERSION_CODE " (version * 65536 + patchlevel * 256 + sublevel)
      7 	print "#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))"
      8 }