The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Community Workspace/Omap4/Pandaboard/mer-minimal-lipstick-pandaboard-armv7hl.ks

From Mer Wiki
< Community Workspace | Omap4/Pandaboard(Difference between revisions)
Jump to: navigation, search
m
Line 121: Line 121:
 
  ## end rpm-rebuilddb.post
 
  ## end rpm-rebuilddb.post
 
   
 
   
  ## Set env variable to show cursor on MTF apps.
+
# Show mouse cursor
 +
sed -i 's! -nocursor!!g' /etc/sysconfig/nemo-mobile-ui
 +
 +
  ## Set env variable to show cursor on MTF apps
 
  cat > /etc/profile.d/mtf-mouse-ptr.sh << EOF
 
  cat > /etc/profile.d/mtf-mouse-ptr.sh << EOF
 
  export M_USE_SHOW_CURSOR=1
 
  export M_USE_SHOW_CURSOR=1
Line 159: Line 162:
 
  sed -i 's!meegotouch-systemui.service!!g' /usr/lib/systemd/user/lipstick.service
 
  sed -i 's!meegotouch-systemui.service!!g' /usr/lib/systemd/user/lipstick.service
 
   
 
   
  # set a nice wallpaper:
+
  # Set a nice wallpaper
  gconftool-2 --type string --set /desktop/meego/background/landscape/picture_filename /usr/share/themes/base/meegotouch/images/meegotouch-wallpaper-landscape.jpg
+
  Config_Src=`gconftool-2 --get-default-source`
 +
gconftool-2 --direct --config-source $Config_Src \
 +
  -s -t string /desktop/meego/background/landscape/picture_filename \
 +
  /usr/share/themes/base/meegotouch/images/meegotouch-wallpaper-landscape.jpg
 
   
 
   
 
  %end
 
  %end

Revision as of 10:52, 16 January 2013

# -*-mic2-options-*- -f raw --record-pkgs=name --pkgmgr=yum --arch=armv7hl -*-mic2-options-*-
# 
# Do not Edit! Generated by:
# kickstarter.py
# 

lang en_US.UTF-8
keyboard us
timezone --utc UTC
part /boot --size=32 --ondisk mmcblk0p --fstype=vfat --active
part / --size=3600  --ondisk mmcblk0p --fstype=ext3


rootpw nemo 

user --name nemo  --groups audio,video --password nemo 

repo --name=mer-core --baseurl=http://releases.merproject.org/releases/latest/builds/armv7hl/packages --save
repo --name=ce-adaptation-pandaboard --baseurl=http://repo.pub.meego.com/CE:/Adaptation:/PandaBoard/Mer_Core_armv7hl/ --save
repo --name=ce-mw-shared --baseurl=http://repo.pub.meego.com/CE:/MW:/Shared/Mer_Core_armv7hl/ --save
repo --name=home-sage-ce-adaptation-pandaboard --baseurl=http://repo.pub.meego.com/home:/sage:/branches:/CE:/Adaptation:/PandaBoard/latest_armv7hl/ --save
repo --name=ce-apps --baseurl=http://repo.pub.meego.com/CE:/Apps/CE_MW_Shared_armv7hl/ --save
repo --name=ce-ux-mtf --baseurl=http://repo.pub.meego.com/CE:/UX:/MTF/CE_MW_MTF_armv7hl/ --save
repo --name=home-plundstr-boot-study --baseurl=http://repo.pub.meego.com/home:/plundstr:/boot-study/Mer_Core_armv7hl/ --save
repo --name=home-sledge--kernel-3.4.0 --baseurl=http://repo.pub.meego.com/home:/sledge:/branches:/CE:/Adaptation:/PandaBoard/Mer_Core_armv7hl/ --save
repo --name=home-sledge--gfx-drivers --baseurl=http://repo.pub.meego.com/home:/sledge:/branches:/home:/sage:/branches:/CE:/Adaptation:/PandaBoard/get_3.0.4_kernel_here/ --save
repo --name=home-sledge--ugly-patched-libX11 --baseurl=http://repo.pub.meego.com/home:/sledge:/branches:/home:/rzr:/harmattan:/experimental/libX11-from-gitweb-merproject-org/ --save

%packages
#@Nemo Middleware Shared
#@Nemo Apps
#@MTF Handset UX
@Mer Graphics Common
@Mer Minimal Xorg
@Mer Connectivity
@Mer Core

qt-qmlviewer
#xorg-x11-drv-evdev
#xorg-x11-drv-vesa
#xorg-x11-drv-fbdev
kernel-adaptation-pandaboard

xorg-x11-server-Xorg-setuid
#pulseaudio-module-x11
pvr-omap4
pvr-omap4-kernel
pvr-omap4-libEGL
pvr-omap4-libGLESv1
pvr-omap4-libGLESv2
u-boot-omap4panda
x-loader-omap4panda
linux-firmware-ti-connectivity

#contextkit-maemo-mce
#mce
xorg-x11-xauth
openssh-clients
openssh-server
ce-backgrounds
plymouth-lite
vim-enhanced
xterm
xorg-launch-helper

lipstick-colorful-home
libdeclarative-sensors
qt-components
mcompositor
maliit-plugins
meegotouch-community-l10n
mapplauncherd

# some apps
flickr-qml
qmlcalc

# wallpaper changing ability (will pull-in settings app, too)
meegotouchcp-wallpaper

# pull in the theme
meegotouch-theme

%end

%post
# Set up proper target for libmeegotouch, in this case:
# Pandaboard on 19in monitor at 1280x1024 resolution
Config_Src=`gconftool-2 --get-default-source`
gconftool-2 --direct --config-source $Config_Src \
  -s -t string /meegotouch/target/name Panda-19in-1280x1024

# Wait a bit more than the default 5s when starting application.
mkdir -p /etc/xdg/mcompositor/
echo "close-timeout-ms 15000;" > /etc/xdg/mcompositor/new-mcompositor.conf

## arch-armv7hl.post from mer-kickstarter-configs package
# Without this line the rpm don't get the architecture right.
echo -n 'armv7hl-meego-linux' > /etc/rpm/platform

# Also libzypp has problems in autodetecting the architecture so we force tha as well.
# https://bugs.meego.com/show_bug.cgi?id=11484
echo 'arch = armv7hl' >> /etc/zypp/zypp.conf
## end arch-armv7hl.post

# Hack to fix the plymouth based splash screen on N900
mv /usr/bin/ply-image /usr/bin/ply-image-real
cat > /usr/bin/ply-image << EOF
#!/bin/sh
echo 32 > /sys/class/graphics/fb0/bits_per_pixel
exec /usr/bin/ply-image-real $@
EOF
chmod +x /usr/bin/ply-image

## rpm-rebuilddb.post from mer-kickstarter-configs package
# Rebuild db using target's rpm
echo -n "Rebuilding db using target rpm.."
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
echo "done"
## end rpm-rebuilddb.post

# Show mouse cursor
sed -i 's! -nocursor!!g' /etc/sysconfig/nemo-mobile-ui

## Set env variable to show cursor on MTF apps
cat > /etc/profile.d/mtf-mouse-ptr.sh << EOF
export M_USE_SHOW_CURSOR=1
EOF

# Disable HW cursor for Pandaboard. Remove when fix has entered kernel. Watch
# this space: https://patchwork.kernel.org/patch/1752301/
sed -i 's!Section "Device"!Section "Device"\n\tOption\t\t"HWCursor"\t"false"!g' /usr/share/X11/xorg.conf.d/99-omap.conf

# Set Qt graphics system to opengl
cat > /etc/profile.d/qt-graphicssystem-opengl.sh << EOF
export QT_GRAPHICSSYSTEM=runtime
export QT_DEFAULT_RUNTIME_SYSTEM=opengl
EOF

# Make Pandaboard config for 19in monitor - how to parametrise this?
cat > /usr/share/meegotouch/targets/Panda-19in-1280x1024.conf << EOF
[resolution]
X=1280
Y=1024
[ppi]
X=250
Y=250
[allowedOrientations]
keyboardOpen = 0
keyboardClosed = 0,270
[other]
showStatusBar=true
EOF

# Make invoker launch Settings app with mouse cursor visible
# FIXME: any better methods to do that? Invoker does not read env :{
sed -i 's!Exec=/usr/bin/invoker --type=q /usr/bin/duicontrolpanel.launch!Exec=sh -c "M_USE_SHOW_CURSOR=1 /usr/bin/invoker --type=q /usr/bin/duicontrolpanel.launch"!g' /usr/share/applications/mtf-settings.desktop

# Detach lipstick from systemui, because it's causing random crashes
# Remove this when sysuid enters the .ks and is stabilised
sed -i 's!meegotouch-systemui.service!!g' /usr/lib/systemd/user/lipstick.service

# Set a nice wallpaper
Config_Src=`gconftool-2 --get-default-source`
gconftool-2 --direct --config-source $Config_Src \
  -s -t string /desktop/meego/background/landscape/picture_filename \
  /usr/share/themes/base/meegotouch/images/meegotouch-wallpaper-landscape.jpg

%end

%post --nochroot
if [ -n "$IMG_NAME" ]; then
    echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
fi


%end
Personal tools