Jump to content

[armbian/build] How to configure U-Boot source before applying patches?


Recommended Posts

Hi,

 

I am working on a PR[0] to the Armbian build framework. As suggested in the PR, I am trying to use the upstream U-Boot source and apply the required patches[1][2] on top of it. One of the patch series[2] requires a git subtree[3] to be added to the U-Boot source before applying the patch itself. However, it seems that Armbian's build framework first attempts to apply the required patches[4] on the U-Boot source and then calls the pre_config_uboot_target hook[5]. Currently, I've put the code to add the git subtree in the pre_config_uboot_target hook. As a result, the required patch series are not getting applied.
 

Is there any way in which we can configure the U-Boot source first before applying the patches to it?

[0]-https://github.com/armbian/build/pull/6275
[1]-https://lore.kernel.org/u-boot/20240223202153.3756094-1-a-nandan@ti.com
[2]-https://lore.kernel.org/all/20240222093607.3085545-1-sumit.garg@linaro.org
[3]-git subtree add --prefix dts/upstream https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git v6.7-dts --squash
[4]-https://github.com/armbian/build/blob/1e6fdcb13b4d626fbd8a1d65c3329810a803e3b1/lib/functions/compilation/uboot.sh#L48
[5]-https://github.com/armbian/build/blob/1e6fdcb13b4d626fbd8a1d65c3329810a803e3b1/lib/functions/compilation/uboot.sh#L68

Any help would be much appreciated.
Thanks,

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines