Commit fdaa7217 authored by Florent Revest's avatar Florent Revest Committed by GitHub

Merge pull request #14 from anyc/master

Small fixes and improvements
parents 91a2a446 82016953
......@@ -11,8 +11,10 @@ do_compile_append() {
cd ${B}
cp ${WORKDIR}/img_info .
sed -i "s@%%KERNEL%%@${B}/${KERNEL_OUTPUT}@" img_info
sed -i "s@%%KERNEL_SIZE%%@$(stat --printf="%s" ${B}/${KERNEL_OUTPUT})@" img_info
sed -i "s@%%RAMDISK%%@${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz@" img_info
mkboot . boot.img
sed -i "s@%%RAMDISK_SIZE%%@$(stat --printf="%s" ${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz)@" img_info
mkboot . boot.img || { echo "mkboot failed"; exit 1; }
}
do_deploy_append() {
......
......@@ -11,6 +11,12 @@ PV = "+git${SRCREV}"
S = "${WORKDIR}/git"
B = "${S}"
do_configure_append() {
if [ ! -x /usr/sbin/zic ] && [ -x /usr/bin/zic ]; then
sed -i "s,/usr/sbin/zic,/usr/bin/zic," "${S}/scripts/zone-generate.sh" "${S}/scripts/zone-list.sh"
fi
}
do_install() {
export INSTALL_ROOT=${D}
oe_runmake install
......
......@@ -3,4 +3,6 @@ do_install_append() {
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
rm -r ${D}${sysconfdir}/modules-load.d
fi
echo "user_allow_other" >> ${D}${sysconfdir}/fuse.conf
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment