riscv / meta-riscv

OpenEmbedded/Yocto layer for RISC-V Architecture
https://riscv.org/
Other
368 stars 140 forks source link

beaglev-starlight: fix u-boot and kernel compile #470

Closed alperak closed 6 months ago

alperak commented 7 months ago

fixes #357 and #358

Error output when building u-boot-starfive_v2021.04 from the master branch:

| scripts/kconfig/conf  --defconfig=arch/../configs/starfive_jh7100_beagle_v_smode_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/starfive_jh7100_beagle_v_smode_defconfig"!
| ***
| make[2]: *** [/opt/riscv-yocto/build/tmp/work/beaglev_starlight_jh7100-poky-linux/u-boot-starfive/v2021.04/git/scripts/kconfig/Makefile:110: starfive_jh7100_beagle_v_smode_defconfig] Error 1
| make[1]: Leaving directory '/opt/riscv-yocto/build/tmp/work/beaglev_starlight_jh7100-poky-linux/u-boot-starfive/v2021.04/build'
| make[1]: *** [/opt/riscv-yocto/build/tmp/work/beaglev_starlight_jh7100-poky-linux/u-boot-starfive/v2021.04/git/Makefile:560: starfive_jh7100_beagle_v_smode_defconfig] Error 2
| make: Leaving directory '/opt/riscv-yocto/build/tmp/work/beaglev_starlight_jh7100-poky-linux/u-boot-starfive/v2021.04/git'
| make: *** [Makefile:167: sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.

Dropped 977abc529f98c1c90a80ad280fe9e58ddd43c87a.patch because fixed in the v2021.07 -> https://github.com/starfive-tech/u-boot/commit/a6d7e8c9149f5f1b94f68129fbe5dec9e1e1489d

Dropped 2feaab2bd04ed736c637518b3b553615f0c97890.patch because fixed in the v2021.07 -> https://github.com/starfive-tech/u-boot/commit/140ee624454b5e6fa9f999bc15d2a9ce82e67782

==============================================================

Error output when building linux-starfive-dev from the master branch:

ERROR: linux-starfive-dev-6.2.0+git-r0 do_kernel_metadata: A KBUILD_DEFCONFIG 'starfive_jh7100_fedora_defconfig' was specified, but not present in the source tree (/opt/riscv-yocto/build/tmp/work-shared/beaglev-starlight-jh7100/kernel-source/arch/riscv/configs/)
ERROR: linux-starfive-dev-6.2.0+git-r0 do_kernel_metadata: ExecutionError('/opt/riscv-yocto/build/tmp/work/beaglev_starlight_jh7100-poky-linux/linux-starfive-dev/6.2.0+git/temp/run.do_kernel_metadata.4037064', 1, None, None)
ERROR: Logfile of failure stored in: /opt/riscv-yocto/build/tmp/work/beaglev_starlight_jh7100-poky-linux/linux-starfive-dev/6.2.0+git/temp/log.do_kernel_metadata.4037064
ERROR: Task (/opt/riscv-yocto/meta-riscv/recipes-kernel/linux/linux-starfive-dev.bb:do_kernel_metadata) failed with exit code '1'

Dropped 0001-riscv-disable-generation-of-unwind-tables.patch because already available https://github.com/starfive-tech/linux/blob/92f369569bee04137e14c376cafbe23bdfb6474a/arch/riscv/Makefile#L90

Dropped 0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch because already available https://github.com/starfive-tech/linux/blob/92f369569bee04137e14c376cafbe23bdfb6474a/scripts/gcc-plugins/gcc-common.h#L74

Dropped 0001-riscv-fix-building-external-modules.patch because already available https://github.com/starfive-tech/linux/blob/92f369569bee04137e14c376cafbe23bdfb6474a/arch/riscv/Makefile#L139

Dropped 0001-eswin-Repace-NULL-with-0-where-it-is-converted-from-.patch because it's not needed for beaglev-starlight.

Signed-off-by: alperak alperyasinak1@gmail.com

alperak commented 7 months ago

image

alperak commented 7 months ago

Ready to :shipit:

kraj commented 7 months ago

Ready to :shipit:

looks ok, although, I would prefer that the commits are squashed into one commit so we can keep the history clean