Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give an option for stop parse beyond a given layer of overlay #20

Open
424778940z opened this issue Dec 20, 2022 · 0 comments
Open

Give an option for stop parse beyond a given layer of overlay #20

424778940z opened this issue Dec 20, 2022 · 0 comments

Comments

@424778940z
Copy link

I'm using this module on an uboot its file, which is the same syntex as device tree dts
I understand this is not the intented usage for this module, but the purpose for this issue apply to both

I have a node like this, when I read it from file as txt, then parse by parse_dts, it will fail because kernel/arch/arm64/boot/dts/rk3568-evb1-ddr4-v10-linux.dtb is not exist yet.

    images {
        fdt {
            data = /incbin/("kernel/arch/arm64/boot/dts/rk3568-evb1-ddr4-v10-linux.dtb");
            type = "flat_dt";
            arch = "arm64";
            compression = "none";
            load = <0xffffff00>;

            hash {
                algo = "sha256";
            };
        };
    };

It may not seems useful when the required file is missing
But actually there is a need for, which is for patching the source before it get used

It would be nice if we could have an option to stop it from parsing further than a given layer number/count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant