Hello,
I am fairly new to SBCs and the ARM architecture.
For my odroid-xu4, I would like to add KVM support to the kernel.
In the odroid wiki, it is described how to achieve this: https://wiki.odroid.com/odroid-xu4/application_note/software/kvm
Essentially, it is rebuilding the kernel with
$this->bbcode_second_pass_code('', 'sudo apt update
sudo apt install git
git clone --depth 1 https://github.com/hardkernel/linux -b odroidxu4-4.14.y
cd linux
make odroidxu4_kvm_defconfig
make -j8
sudo make modules_install
sudo cp arch/arm/boot/zImage /media/boot/zImage_kvm
sudo cp arch/arm/boot/dts/exynos5422-odroidxu4-kvm.dtb /media/boot/')
So I have cloned the Arch Linux ARM PKGBUILD repository to build linux-odroid-xu3 with KVM support.
What I am wondering now is - is it really that easy to only include the
$this->bbcode_second_pass_code('', 'make odroidxu4_kvm_defconfig')
in the build() step of the pkgbuild?
i.e.:
$this->bbcode_second_pass_code('', 'build() {
cd "${srcdir}/${_srcname}"
# get kernel version
make prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
#make nconfig # new CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
#########################################
#add KVM support:
make odroidxu4_kvm_defconfig
#########################################
# ... or manually edit .config
# Copy back our configuration (use with new kernel version)
#cp ./.config ../${pkgbase}.config
####################
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
####################
#yes "" | make config
# build!
make ${MAKEFLAGS} zImage modules dtbs
}')
Thank you very much in advance for your help!