Jump to content

Kraust

Members
  • Posts

    2
  • Joined

  • Last visited

  1. I found an incredibly roundabout way of doing this. ./compile.sh \ kernel \ BOARD=$OPT_ARMBIAN_BOARD \ BRANCH=$OPT_ARMBIAN_KERNEL \ CLEAN_LEVEL=make,alldebs,images,cache \ EXPERT=yes \ PREFER_DOCKER=yes \ KERNEL_GIT=shallow KERNEL_CONFIG=$(find $KERNEL_DIR/cache/sources/linux-kernel-worktree -name .config) if [ ! -f $KERNEL_CONFIG ] then echo "Failed to find .config" exit 1 fi FULL_KERNEL_VERSION=$(cat $KERNEL_CONFIG | grep "Kernel Configuration" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') if [ "$FULL_KERNEL_VERSION" == "" ] then echo "Failed to get full kernel version." exit 1 fi
  2. i.e. git clone -b main --depth 1 https://github.com/armbian/build.git cd build # I want to find out what kernel my board is building befor here. ./compile.sh kernel BOARD=orangepi5b BRANCH=vendor EXPERT=yes PREFER_DOCKER=yes KERNEL_GIT=shallow I need to do this so I can apply patches based on the selected kernel verison (e.g. 5.10, 6.1, 6.12) as they are all different patches due to Makefile changes. I don't see a clean way to do this with the builder unless I build the kernel first, search the kernel sources and then determine the kernel that way.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines