diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-10-21 19:10:45 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-12-15 22:25:40 +0300 |
commit | 5905d41d62ccd752ba38f7c8a4bf2fa9c57a5238 (patch) | |
tree | f25b42e392d7b0efa72ad85eadc2da51970a414d /poky/bitbake | |
parent | 5abb7ee32973c3959f5f498f9f6396017b2f3622 (diff) | |
download | openbmc-5905d41d62ccd752ba38f7c8a4bf2fa9c57a5238.tar.xz |
Add bbclass to copy license info to /usr/share/www
Some products have requirements for the source license info to
be made available to users. This adds a bbclass that copies
the license info stored in /usr/share/common-licenses to
/usr/share/www/common-licenses. From there it is served to
users by bmcweb in the existing webassets.hpp functionality.
File paths will show users the file content, but directories will
only display content in an index.* file. So, the bbclass also
creates an index.json for each directory so that directory paths
will show users the directory contents.
Tested:
Navigated to /common-licenses and common-licenses/ and confirmed
that the directory listing was displayed.
Navigated to /common-licenses/bmcweb and common-licenses/bmcweb/
and confirmed that the directory listing was displayed.
Navigated to /common-licenses/bmcweb/LICENSE and confirmed that
the license text was displayed.
Navigated to /common-licenses/../../network/config.json and
it returned "Not Found".
Navigated to /common-licenses/../ipmi-providers/channel_access.json
and it returned "Not Found".
Change-Id: I286b0cf53a9520087b1a57b17ea66f408f08ed3b
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'poky/bitbake')
0 files changed, 0 insertions, 0 deletions