GithubHelp home page GithubHelp logo

Comments (8)

github-actions avatar github-actions commented on May 27, 2024

Jira ticket: AR-1978

from build.

viraniac avatar viraniac commented on May 27, 2024

I will say this is not a problem of build framework per se, and can easily be solved by the user on their side. When the user created the patch, all other patches were already applied. So the created patch was supposed to be the last patch in the list. But its clear from the logs, that the patch is now being applied at the 52nd position instead of the last position. Just adding a zzzz- as a prefix to patch filename would have resolved the issue.

from build.

rossbcan avatar rossbcan commented on May 27, 2024

@viraniac

disagree. Adding zzz- as patch name prefix has same problem. New log: https://paste.next.armbian.com/oyufowemih

The "problem" is that patches: Armbian Bare DT auto-patch, Armbian Bare OVERLAY auto-patch and Armbian DT Makefile auto-patch appear to be applied BEFORE the kernel-patch (auto create patch) process and AFTER the created / user patch is applied, causing patch failure.

This is because I am making changes to files affected by the above auto-patch's

I am unsure how to resolve this without code consistency between when patch created and applied.

from build.

viraniac avatar viraniac commented on May 27, 2024

@rossbcan Sorry, my bad. I take care of sunxi and meson-s4t7 family and that feature is not used there. Hence completely forgot about the same. Reopened the issue. Maybe someone else can take a look

from build.

rossbcan avatar rossbcan commented on May 27, 2024

Possible solution hint...

In file "lib/tools/common/dt_makefile_patcher.py", make auto-patch run dependent on "kernel-patch" NOT defined in compile.sh parameters.

may be "unintended" consequences. Need a guru...

from build.

rpardini avatar rpardini commented on May 27, 2024

The purpose of the auto patcher is exactly to avoid needing to patch Makefiles, which are frequent cause of conflicts across version bumps.
Just add the DTs you want to the dt dir in the patch folder, everything else will be done automatically. See the others already in there: https://github.com/armbian/build/tree/main/patch/kernel/archive/meson64-6.6:

  • 000.patching_config.yaml configures the auto patcher
  • dt folder, you can just drop your .dts here and they'll be added to makefile automatically

from build.

rpardini avatar rpardini commented on May 27, 2024

Oh, and you can have your bare DTs also in userpatches if you prefer, I have them here https://github.com/rpardini/armbian-build/tree/extensions/userpatches/kernel/meson64-edge/dt (thus in userpatches/kernel/meson64-edge/dt)

from build.

rossbcan avatar rossbcan commented on May 27, 2024

@rpardini

THANK you very much...

I opted to add the dts and hidden .cmd files via userpatches and took your word that the Makefile will be auto generated. It worked. Note this is for edge.

I have similar patches for current, including dts/amlogic/Makefile which work. I assume the "Armbian DT Makefile auto-patch" mechanism is not in current.

This issue begs documentation, closing anyway

Thanks; Bill

from build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.