siemens / kas

Setup tool for bitbake based projects
MIT License
339 stars 145 forks source link

Add symbolic link feature under repos #91

Closed syedelec closed 4 months ago

syedelec commented 1 year ago

Hello

I am playing around and I wanted to know if it's possible to integrate the symbolic link feature to reproduce what I was achieving using repo tool

In repo tool, I was doing the following in a manifest (example):

    <project name="meta-custom" remote="remote-name" path="sources/meta-custom" revision="kirkstone">
        <linkfile src="test/script" dest="script"/>  <!--File symlink-->
        <linkfile src="unittests/" dest="unittests"/> <!--Folder symlink-->
    </project>

I suggest something like:

repos:
  meta-custom:
    url: "http://URLorg/meta-custom"
    refspec: a8c82902384f7430519a31732a4bb631f21693ac
    path: sources/meta-custom
    links:
        [...]

Thanks!

jan-kiszka commented 1 year ago

Kas does not have the same type of feature. But it does allow to patch repo. Therefore, you could create a patch adding that symlink on the repo itself and include that in the kas config file.

jan-kiszka commented 4 months ago

Feel free to reopen if the suggestion didn't work.