Skip to content
Snippets Groups Projects
Commit 9617722f authored by Robert Drab's avatar Robert Drab
Browse files

ohos-xts-acts: Build jffs2 test image

jffs2.img will be used to mount /storage directory required by ActsJFFS2Test
test suite using loopback device.

Related-To: https://git.ostc-eu.org/OSTC/OHOS/components/staging/xts_acts/-/issues/5


Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
parent ca802cfc
No related branches found
No related tags found
No related merge requests found
...@@ -13,4 +13,20 @@ FILES_SOLIBSDEV = "" ...@@ -13,4 +13,20 @@ FILES_SOLIBSDEV = ""
inherit zmk inherit zmk
DEPENDS += "ohos-googletest ohos-libsec" # jffs2 image size defaults to 1MB
ACTS_JFFS2_IMG_SIZE ?= "0x100000"
do_install_append() {
# Prepare jffs2 image to be mounted on the target
# mkfs.jffs2 requires a directory to make an image out of
mkdir -p ${B}/.jffs-empty-dir
mkfs.jffs2 --root=${B}/.jffs-empty-dir --pad=${ACTS_JFFS2_IMG_SIZE} -o ${B}/jffs2.img
rm -rf ${B}/.jffs-empty-dir
install -d ${D}${datadir}/acts-data
install -m 644 ${B}/jffs2.img ${D}${datadir}/acts-data
}
FILES_${PN} += "${datadir}/acts-data/*"
DEPENDS += "ohos-googletest ohos-libsec mtd-utils-native"
RRECOMMENDS_${PN} += "kernel-module-block2mtd"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment