Merge pull request #420 from jimmyGALLAND/main

Update vmlinux-to-bzImage.sh
This commit is contained in:
Fabio Belavenuto 2022-12-12 14:33:36 -03:00 committed by GitHub
commit 17a35c1dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,9 @@ size_le () {
SCRIPT_DIR=`dirname $0`
VMLINUX_MOD=${1}
ZIMAGE_MOD=${2}
if [ ${KVER:0:1} -eq 4 ]; then
# Kernel version 4.x
KVER_MAJOR=${KVER:0:1}
if [ $KVER_MAJOR -eq 4 ] || [ $KVER_MAJOR -eq 3 ]; then
# Kernel version 4.x or 3.x (bromolow)
#zImage_head 16494
#payload(
# vmlinux.bin x