blob: 42a8ac6d71fde861e0932b72ad810f7583be8e29 [file] [log] [blame]
developerefca97c2022-05-30 16:22:40 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2SRC_URI_append = " file://init_readonlyfs.sh \
3 "
4FILES_${PN} += " /overlay \
5 /rom \"
6
7do_install_append() {
8 install -d ${D}/overlay
9 install -d ${D}/rom
10 install -m 0755 ${WORKDIR}/init_readonlyfs.sh ${D}${rootlibexecdir}/init_readonlyfs.sh
11 [ -e ${D}/sbin/init ] && rm -rf ${D}/sbin/init
12 ln -s ${rootlibexecdir}/init_readonlyfs.sh ${D}/sbin/init
13}
14
15FILES_${PN} += " ${rootlibexecdir}/init_readonlyfs.sh "