Adding custom board getting kernel header issue

adding new custom kernel i am getting above error
error: include/uapi/linux/serial_reg.h: leak CONFIG_SOC_SIFIVE_NB2 to user-space
make[6]: *** [scripts/Makefile.headersinst:63: usr/include/linux/serial_reg.h] Error 1
make[5]: *** [Makefile:1310: headers] Error 2
make[5]: Leaving directory '/home/vitthal/vitthal/nb2-soc-linux-kernel'
make[4]: *** [Makefile:37: /home/vitthal/Leapfive/openwrt-5.10/build_dir/target-riscv64-unknown-linux-gnu_glibc/linux-Leapfive_generic/linux-5.10.41/.configured] Error 2
make[4]: Leaving directory '/home/vitthal/Leapfive/openwrt-5.10/target/linux/Leapfive'
make[3]: *** [Makefile:11: compile] Error 2
make[3]: Leaving directory '/home/vitthal/Leapfive/openwrt-5.10/target/linux'
time: target/linux/compile#0.37#0.07#0.44
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:30: target/linux/compile] Error 1
make[2]: Leaving directory '/home/vitthal/Leapfive/openwrt-5.10'
make[1]: *** [target/Makefile:23: /home/vitthal/Leapfive/openwrt-5.10/staging_dir/target-riscv64-unknown-linux-gnu_glibc/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/vitthal/Leapfive/openwrt-5.10'
make: *** [/home/vitthal/Leapfive/openwrt-5.10/include/toplevel.mk:230: world] Error 2

according to https://openwrt.org/docs/techref/targets/kernelversions, sifive is only supported starting 5.15.

you're on your own.

1 Like