HowToMeegoFennecDraft: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 70: Line 70:
if [ -f $1 ]; then
if [ -f $1 ]; then
count=`cat $1`
count=`cat $1`
if [ "X$count" != "X" ]; then
if [ "X$count" != "X" ]; then
count=`expr $count + 1`
count=`expr $count + 1`
echo $count > $1
echo $count > $1
Line 81: Line 81:
if [ -f $1 ]; then
if [ -f $1 ]; then
count=`cat $1`
count=`cat $1`
if [ "X$count" != "X" ] && [ $count -gt 0 ]; then
if [ "X$count" != "X" ] && [ $count -gt 0 ]; then
count=`expr $count - 1`
count=`expr $count - 1`
echo $count > $1
echo $count > $1
Line 92: Line 92:
if [ -f $1 ]; then
if [ -f $1 ]; then
count=`cat $1`
count=`cat $1`
if [ "X$count" != "X" ]; then
if [ "X$count" != "X" ]; then
echo "The reference count of [$1]: $count"
echo "The reference count of [$1]: $count"
fi
fi
Line 136: Line 136:
if [ -h /proc/$pid/root ]; then
if [ -h /proc/$pid/root ]; then
ps=$( ls -l /proc/$pid/root 2>/dev/null | grep $chroot)
ps=$( ls -l /proc/$pid/root 2>/dev/null | grep $chroot)
if [ "X$ps" != "X" ]; then
if [ "X$ps" != "X" ]; then
kill $pid
kill $pid
fi
fi
Line 183: Line 183:
setup $CHROOT
setup $CHROOT
else
else
if [ "x$2" != "x" ]; then
if [ "x$2" != "x" ]; then
if [ $2 = "force-clean" ]; then
if [ $2 = "force-clean" ]; then
echo "$CHROOT_NAME: clean up meego chroot $CHROOT"
echo "$CHROOT_NAME: clean up meego chroot $CHROOT"
Line 206: Line 206:
reference_decrease $chroot_reference_count
reference_decrease $chroot_reference_count
count=`cat $chroot_reference_count`
count=`cat $chroot_reference_count`
if [ "X$count" != "X" ] && [ $count -eq 0 ]; then
if [ "X$count" != "X" ] && [ $count -eq 0 ]; then
cleanup $CHROOT
cleanup $CHROOT
else
else
Line 223: Line 223:
fi
fi
fi
fi
</pre>
== Mozconfig ==
<pre>
export MOZ_ENABLE_GCONF=1                                                                                                               
# Options for client.mk.
mk_add_options MOZ_BUILD_PROJECTS="xulrunner"
#mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mobilebase
# Global options
#ac_add_options --enable-debug
#ac_add_options --disable-optimize
ac_add_options --disable-installer
ac_add_options --disable-crashreporter
ac_add_options --disable-javaxpcom   
ac_add_options --enable-printing     
ac_add_options --disable-embedding-tests
ac_add_options --disable-elf-dynstr-gc 
ac_add_options --disable-updater       
ac_add_options --disable-glibtest     
# XULRunner options
ac_add_app_options xulrunner --enable-application=xulrunner
ac_add_app_options xulrunner --disable-javaxpcom         
# Disabling tests due to bug 454881
#ac_add_options --disable-tests   
# mobile options
#ac_add_app_options mobile --enable-application=mobile
#ac_add_app_options mobile --with-libxul-sdk=../xulrunner/dist
# Disable wifi support in necko
ac_add_options --disable-necko-wifi
# Less disk space, faster startup, we are not using accessibility, on device
ac_add_options --disable-accessibility
ac_add_options --disable-thumb2
ac_add_options --enable-gstreamer
#ac_add_options --disable-ogg
#ac_add_options --disable-webm
ac_add_options --enable-cpp-rtti
export LDFLAGS="-Wl,--no-keep-memory"
LDFLAGS="-Wl,--no-keep-memory"
ac_add_options  --enable-default-toolkit=cairo-qt --with-maemo-version=6 --disable-elf-dynstr-gc --with-arm-kuser --disable-install-strip --disable-jemalloc --disable-logging --disable-logrefcnt --enable-tests --enable-mochitest --enable-system-ffi --enable-meegotouch --enable-optimize="-g -O3  -D__ARM_PCS_VFP=1 " --prefix=/usr --build=arm-linux-gnueabi
mk_add_options MOZ_OBJDIR=/scratchbox/newworld/mozilla-central-Pilots-RC1/build-tree/obj-qt-nojit-armel-sb-syscairo-syspixman-sysffi-buildxulrunner
mk_add_options MOZ_MAKE_FLAGS=
</pre>
</pre>

Navigation menu