blob: f387eda5fd058ee3140954c8525d0382f2006b78 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001STATE_DIR_CONTENT = "${IMAGE_ROOTFS}/../usrdata"
2
3mk_tinyrootfs_image() {
4 mkdir -p ${STATE_DIR_CONTENT}/tmp
5 mkdir -p ${STATE_DIR_CONTENT}/etc
6 mkdir -p ${STATE_DIR_CONTENT}/var
7 mkdir -p ${STATE_DIR_CONTENT}/usr
8 mkdir -p ${STATE_DIR_CONTENT}/usr/bin
9 mkdir -p ${STATE_DIR_CONTENT}/usr/sbin
10 mkdir -p ${STATE_DIR_CONTENT}/config
11
12 install -d ${STATE_DIR_CONTENT}
13 rm -fr ${IMAGE_ROOTFS}/usr/share/X11/xkb/rules/evdev.xml
14 rm -fr ${IMAGE_ROOTFS}/usr/share/X11/xkb/rules/base.xml
15 rm -fr ${IMAGE_ROOTFS}/usr/share/X11/xkb/symbols/nokia_vndr/rx-51
16
17 rm -fr ${IMAGE_ROOTFS}/usr/lib/libQt5Test.so.5.8.0
18 rm -fr ${IMAGE_ROOTFS}/usr/lib/libQt5QuickTest.so.5.8.0
19
20 rm -fr ${IMAGE_ROOTFS}/usr/lib/libmdp_prot.mt2701.so
21 rm -fr ${IMAGE_ROOTFS}/usr/lib/libmdp_prot.mt2712.so
22 rm -fr ${IMAGE_ROOTFS}/usr/lib/libmdp_prot.mt8173.so
23 rm -fr ${IMAGE_ROOTFS}/usr/share/weston/rawdata.rgb565
24}
25
26ROOTFS_POSTPROCESS_COMMAND += " mk_tinyrootfs_image;"
27
28