Sample Header Ad - 728x90

Reusing source files between machines in bitbake

1 vote
1 answer
330 views
My goal is to share source files between some machines, but not all. In this example, machine_a and machine_b have source directories that are exact copies of each other an I'd like to combine them together somehow to reduce the duplication. recipe/ machine_a/ script_1.sh script_2.sh machine_b/ script_1.sh script_2.sh machine_c/ script_3.sh I've tried symbolically linking machine_b/ to machine_a/ as well as linking the individual source files (machine_b/script_1.sh -> machine_a/script_1.sh etc) but the problem is that since the build is done in a docker container and the do_fetch() task doesn't perform a deep copy, the build can't access the original source file. I can think of other ways like changing MACHINE_NAME inside the recipe, but I don't think that'd work cleanly. What's the best way to accomplish this?
Asked by andrey (61 rep)
Nov 3, 2022, 05:25 PM
Last activity: Nov 14, 2022, 03:32 PM