Skip to content

Commit

Permalink
webos: webos_image.bbclass: Add webos_checksec_scan to IMAGE_CLASSES …
Browse files Browse the repository at this point in the history
…as validitems

:Release Notes:
Introduce the checksec process in webOS

:Detailed Notes:
If webos-checksec is included in IMAGE_FEATURES, the image recipes
inherit webos_checksec_scan.
In this case, checksec is executed when each image is built.
By default, webos-checksec is not added to IMAGE_FEATURES.
It should be added as needed in external conf files such as
webos-local.conf.

:Builds Notes:
This is required by
http://gpro.lge.com/c/z-engineering/jenkins-scripts/+/420526

:Testing Performed:
Build Test Suites.

:QA Notes:
N/A

:Issues Addressed:
[WRQ-28305] CCC: webos_image.bbclass: webos_checksec_scan to
            IMAGE_CLASSES as validitems
[WRQ-28040] Add checksec process in webOS build

Cherry-picked-from-commit: 96f7099e54c633bd0aac527e201a3d8f022e58f4
Cherry-picked-from-branch:
  • Loading branch information
mark.yang authored and ywbyun0815 committed Oct 26, 2024
1 parent ac6f3e5 commit 2360eb8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions meta-webos/classes/webos_image.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
# webos-extract-ls2-api: Add task to extract luna-service2 api list
# webos-validate-ls2-conf: Add task to validate LS2 sysbus files
# webos-production-image: Specific features to productize
# webos-checksec-scan: Add functionality to perform checksec to rootfs
#
# and IMAGE_FEATURES from core-image
IMAGE_FEATURES[validitems] = "webos-minimal webos-systemapps webos-testapps webos-extended webos-devel webos-test webos-extract-ls2-api webos-validate-ls2-conf webos-production-image "
IMAGE_FEATURES[validitems] = "webos-minimal webos-systemapps webos-testapps webos-extended webos-devel webos-test webos-extract-ls2-api webos-validate-ls2-conf webos-production-image webos-checksec-scan"

FEATURE_PACKAGES_webos-minimal = "packagegroup-webos-minimal"
FEATURE_PACKAGES_webos-systemapps = "packagegroup-webos-systemapps"
Expand Down Expand Up @@ -63,7 +64,10 @@ IMAGE_CLASSES += "${@bb.utils.contains('IMAGE_FEATURES', 'webos-validate-ls2-con

# webOS supports the generation of oss package information file.
# $ bitbake -c write_oss_pkg_info <image>
IMAGE_CLASSES += "webos_oss_pkg_info pkg_dependency webos_ls2_api_info ${@bb.utils.contains('IMAGE_FEATURES', 'webos-extract-ls2-api', 'webos_ls2_api_list', '', d)}"
IMAGE_CLASSES += "webos_oss_pkg_info pkg_dependency webos_ls2_api_info \
${@bb.utils.contains('IMAGE_FEATURES', 'webos-extract-ls2-api', 'webos_ls2_api_list', '', d)} \
${@bb.utils.contains('IMAGE_FEATURES', 'webos-checksec-scan', 'webos_checksec_scan', '', d)} \
"

# Add ${webos_sysconfdir}/build/image-name during image construction that contains the image name
ROOTFS_POSTPROCESS_COMMAND += "rootfs_set_image_name ; clean_python_installation ; verify_acg ; "
Expand Down

0 comments on commit 2360eb8

Please sign in to comment.