blob: 5b5fa31f3a3260cae030564ec6710c4b0a253462 [file] [log] [blame]
do_mk_state_part_rootfs_post() {
bbwarn "mylog, warn, ROOTFS_POSTPROCESS_COMMAND=${ROOTFS_POSTPROCESS_COMMAND}"
# Create Volatile failed work-around deal with symbolic link issue
ln -s -f /var/run/connman/resolv.conf ${IMAGE_ROOTFS}/etc/resolv.conf
ln -s -f ../proc/self/mounts ${IMAGE_ROOTFS}/etc/mtab
ln -s -f /usr/share/zoneinfo/Universal ${IMAGE_ROOTFS}/etc/localtime
# syslog failed work-around
install -d ${IMAGE_ROOTFS}/etc/syslog
cp -rf ${IMAGE_ROOTFS}/etc/syslog.conf* ${IMAGE_ROOTFS}/etc/syslog
# autokd work-around
ln -s -f ld-linux-armhf.so.3 ${IMAGE_ROOTFS}/lib/ld-linux.so.3
}
ROOTFS_POSTPROCESS_COMMAND += " do_mk_state_part_rootfs_post;"
mk_state_part_rootfs_pre() {
install -d ${IMAGE_ROOTFS}/protect_f
install -d ${IMAGE_ROOTFS}/protect_s
install -d ${IMAGE_ROOTFS}/data
#for 2731
install -d ${IMAGE_ROOTFS}/mnt/vendor/nvdata
install -d ${IMAGE_ROOTFS}/mnt/vendor/protect_f
install -d ${IMAGE_ROOTFS}/mnt/vendor/protect_s
install -d ${IMAGE_ROOTFS}/STATE
install -d ${IMAGE_ROOTFS}/log
install -d ${IMAGE_ROOTFS}/home
install -d ${IMAGE_ROOTFS}/var
install -d ${IMAGE_ROOTFS}/mnt
install -d ${IMAGE_ROOTFS}/srv
install -d ${IMAGE_ROOTFS}/usr/lib/tmpfiles.d
install -d ${IMAGE_ROOTFS}/usr/local
install -d ${IMAGE_ROOTFS}/etc/firmware
install -d ${IMAGE_ROOTFS}/custom/etc/firmware
install -d ${IMAGE_ROOTFS}/system/etc/firmware
install -d ${IMAGE_ROOTFS}/system/etc/audio_param
install -d ${IMAGE_ROOTFS}/system/etc/adr
install -d ${IMAGE_ROOTFS}/system/etc/agps
install -d ${IMAGE_ROOTFS}/system/etc/security
install -d ${IMAGE_ROOTFS}/etc/adr
install -d ${IMAGE_ROOTFS}/usr/share/gps
}
ROOTFS_PREPROCESS_COMMAND += " mk_state_part_rootfs_pre;"