Try to compile kernel explicitly
All checks were successful
buildbot/multibuild_parent Build done.
buildbot/travis_bionic Build done.
buildbot/job/openwrt Build done.

This commit is contained in:
Peter Šurda 2024-01-31 11:59:35 +08:00
parent 9c0636f2b2
commit 712a354ac2
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -106,6 +106,7 @@ PACKAGES="kmod-i2c-bcm2835 kmod-i2c-mux kmod-i2c-mux-pinctrl \
BOOTSOURCE=target/linux/${OPENWRT_TARGET}/image BOOTSOURCE=target/linux/${OPENWRT_TARGET}/image
BOOTCONFIG=${BOOTSOURCE}/config.txt BOOTCONFIG=${BOOTSOURCE}/config.txt
BOOTCMDLINE=${BOOTSOURCE}/cmdline.txt
KERNELSOURCE=build_dir/target-${PKG_ARCH}_musl/linux-${OPENWRT_TARGET}_${OPENWRT_DEVICE}/linux-5.10.146 KERNELSOURCE=build_dir/target-${PKG_ARCH}_musl/linux-${OPENWRT_TARGET}_${OPENWRT_DEVICE}/linux-5.10.146
OVERLAYSOURCE=${KERNELSOURCE}/arch/arm64/boot/dts/overlays OVERLAYSOURCE=${KERNELSOURCE}/arch/arm64/boot/dts/overlays
@ -143,6 +144,9 @@ make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="dualeth" \
sed -i "s|,i2c_csi_dsi||g" ${BOOTSOURCE}/current.txt sed -i "s|,i2c_csi_dsi||g" ${BOOTSOURCE}/current.txt
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=768/g" .config sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=768/g" .config
#sed -i 's/root=\/dev\/mmcblk0p2/root=\/dev\/nvme0n1p2/' $BOOTCMDLINE
make target/linux
make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="waveshare" \ make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="waveshare" \
PACKAGES=" \ PACKAGES=" \
@ -161,6 +165,7 @@ git apply ${pwd}/patches/overlay-add.patch
popd popd
sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=308/g" .config sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=.*/CONFIG_TARGET_ROOTFS_PARTSIZE=308/g" .config
#sed -i 's/root=\/dev\/nvme0n1p2/root=\/dev\/mmcblk0p2/' $BOOTCMDLINE
make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="sensing" \ make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="sensing" \
PACKAGES="${PACKAGES} asterisk \ PACKAGES="${PACKAGES} asterisk \