I’m having trouble running build_kernel.sh (I cloned ti-linux-5.10.y before, then “git checkout -b tmp” to checkout my local branch). Every time I build I get an error saying ahead 1 commit. This is the 3rd time I run this file, here is the output:
oot@DESKTOP-JS76DD9:/mnt/d/BBB/kernelbuildscripts# ./build_kernel.sh
- Detected build host [Ubuntu 24.04.1 LTS]
- host: [x86_64]
- git HEAD commit: [4e390e792b0b9d311950c0208b890f858a9698cc]
cpio: cpio (GNU cpio) 2.15
lz4: *** LZ4 command line interface 64-bits v1.9.4, by Yann Collet ***
xz: xz (XZ Utils) 5.4.5
glibc: 2.39
Using Existing Toolchain: gcc_10_arm
scripts/gcc: Using: arm-linux-gnueabi-gcc (GCC) 10.5.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
CROSS_COMPILE=/mnt/d/BBB/kernelbuildscripts/dl/gcc-10.5.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-
scripts/git: [git version 2.43.0]
scripts/git: LINUX_GIT not defined in system.sh
using default location: /mnt/d/BBB/kernelbuildscripts/ignore/linux-src/
scripts/git: Debug: LINUX_GIT is setup as: [/mnt/d/BBB/kernelbuildscripts/ignore/linux-src].
scripts/git: [url=pub/scm/linux/kernel/git/torvalds/linux.git - Git at Google]
fatal: Resolve operation not in progress, we are not resuming.
/usr/bin/git tree is clean…
[master b09b6df307e9] empty cleanup commit
HEAD is now at b09b6df307e9 empty cleanup commit
Already on ‘master’
Your branch is ahead of ‘origin/master’ by 3 commits.
(use “git push” to publish your local commits)
log: [/usr/bin/git pull --no-rebase --no-edit]
Already up to date.
error: Your local changes to the following files would be overwritten by checkout:
net/netfilter/xt_DSCP.c
net/netfilter/xt_RATEEST.c
net/netfilter/xt_TCPMSS.c
Please commit your changes or stash them before you switch branches.
Aborting
root@DESKTOP-JS76DD9:/mnt/d/BBB/kernelbuildscripts#
Every time I run build_kernel.sh, this script seems to create a new commit, making my branch always 1 commit ahead of origin/master. Therefore my build can not be successful.
Anyone can help me on this issue? Thanks so much.