3 Commits

Author SHA1 Message Date
Dostoievski Batista
a1a167bb71 Change scripts names in the patch's metadata
When adding a pre-install or post-install script to the patch, we rename
it to "pre-install.sh" or "post-install.sh" to facilitate the use of the
patch afterwards. This change makes the metadata inside the patch
reflect this. Together with this change we move PATCH_SCRIPTS constant
to separate file as the same will be call in different files.

Test plan:
    PASS: Create patch without any scripts
    PASS: Create patch with only pre-install script
    PASS: Create patch with only post-install script
    PASS: Create patch with all scripts
    PASS: Install patch with all scripts in a running AIO-SX,
    check if scripts are present in /opt/software/software-scripts/
    PASS: Delete patch with all scripts in a running AIO-SX,
    check if scripts are not present in /opt/software/software-scripts/

Story: 2010676
Task: 50926

Change-Id: I639ff15e306ec69ed1bbbfea8c99aa96affa1dec
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
2024-08-28 09:56:23 -03:00
Dostoievski Batista
bed9713234 Change patch-builder default output folder
This review modify the default output of the patch to /localdisk/deploy
instead of $MY_BUILD_PKG_DIR, this make the patch more easily acessible
by the default.

Test plan:
    PASS: patch-builder --recipe <path>
    PASS: patch-builder --recipe <path> --name <custom_name>

Story: 2010676
Task: 50707

Change-Id: I132f8c5138729d50dc266e42b8fe6d7fdb84b433
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
2024-07-31 09:56:48 -03:00
Dostoievski Batista
45a754eca3 Rename patch-builder script
Renaming patch builder script to "patch-builder", so it's similar to
the other build tools and matches the documentation.

Test plan:
    PASS: Test building patches with different recipes:
        Recipe with one packages
        Recipe with multiple packages
        Recipe with pre and post install script
        Recipe with precheck scripts

Story: 2010676
Task: 50643

Change-Id: I704d5a50bc7256d2573a1466beaab26e2b207b01
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
2024-07-24 10:39:13 -03:00