⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qtopia-mpc5200.spec

📁 coldfire MCF5445X基于unix平台的BSP
💻 SPEC
字号:
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary         : qtopia palmtop environmentName            : qtopia-free-srcVersion         : 2.2.0Release         : 1License         : GPLVendor          : FreescalePackager        : John RigbyGroup           : System Environment/GraphicsSource          : %{name}-%{version}.tar.gzPatch1		: qtopia-free-2.2.0-mpc5200-0001-19Jun2006-ppc-qconfig.patchPatch2		: qtopia-free-2.2.0-mpc5200-0002-19Jun2006-ppc-libavcodec-bigendian.patchPatch3		: qtopia-free-2.2.0-mpc5200-0003-19Jun2006-qconfig-cursor-mouse.patchPatch4		: qtopia-free-2.2.0-mpc5200-0004-19Jun2006-rgb555-swapped-video.patchPatch5		: qtopia-free-2.2.0-mpc5200-0005-19Jun2006-audio-no-getospace.patchPatch6		: qtopia-free-2.2.0-mpc5200-0006-19Jun2006-nativeendian-audio.patchPatch7		: qtopia-free-2.2.0-mpc5200-0007-19Jun2006-media5200-touchscreen.patchPatch8		: qtopia-free-2.2.0-mpc5200-0008-19Jun2006-runtime-hidecursor.patchBuildRoot       : %{_tmppath}/%{name}Prefix          : %{pfx}%Description%{summary}%Prep%setup -n qtopia-free-2.2.0%patch1 -p1%patch2 -p1%patch3 -p1%patch4 -p1%patch5 -p1%patch6 -p1%patch7 -p1%patch8 -p1cp -r tmake/lib/qws/linux-arm-g++ tmake/lib/qws/linux-powerpc-g++rm -rf tmake/lib/qws/linux-powerpc-linux-g++/tmake.confcat tmake/lib/qws/linux-arm-g++/tmake.conf | sed -e "s/arm-linux/powerpc-603e-linux/" > tmake/lib/qws/linux-powerpc-g++/tmake.confcp -r qtopia/mkspecs/qws/linux-arm-g++ qtopia/mkspecs/qws/linux-powerpc-g++rm -rf qtopia/mkspecs/qws/linux-powerpc-g++/qmake.conf cat qtopia/mkspecs/qws/linux-arm-g++/qmake.conf | sed -e "s/arm-linux/powerpc-603e-linux/" > qtopia/mkspecs/qws/linux-powerpc-g++/qmake.conf# force the calibration apps on for touchscreensed < qtopia/src/libraries/qtopia/custom-linux-generic-g++.h -e 's/.*#.*QPE_NEED_CALIBRATION/#define QPE_NEED_CALIBRATION/' > qtopia/src/libraries/qtopia/custom-linux-powerpc-g++.hcp qtopia/src/libraries/qtopia/custom-linux-generic-g++.cpp qtopia/src/libraries/qtopia/custom-linux-powerpc-g++.cpp%Buildexport PATH=$UNSPOOF_PATHecho yes | ./configure \  -qte    "-platform linux-x86-g++ -xplatform linux-powerpc-g++ \    -depths 16,32 -system-jpeg -no-opengl -no-xft -no-sm -no-qvfb -no-vnc \    -rgb555 -swapbytes_video \    -no-g++-exceptions -no-xft -embedded -qconfig qpe \    -L $DEV_IMAGE/usr/lib \    -I $DEV_IMAGE/usr/include" \  -qpe    "-platform linux-g++ -xplatform linux-powerpc-g++ \    -arch powerpc -no-qvfb -with-libffmpeg -qconfig qpe \    -rgb555 -swapbytes_video \    -L $DEV_IMAGE/usr/lib \    -I $DEV_IMAGE/usr/include \    -l jpeg -l uuid"./qtopia/scripts/buildQtopiaTools -checkmake%Installexport PATH=$UNSPOOF_PATHecho creating qtopia install imagemake install > /dev/nullrm -rf $RPM_BUILD_ROOTinstall -d $RPM_BUILD_ROOT/%{pfx}cp -a qtopia/image/opt $RPM_BUILD_ROOT/%{pfx}install -d $RPM_BUILD_ROOT/%{pfx}/etc/rc.dcat > $RPM_BUILD_ROOT/%{pfx}/etc/rc.d/rc.qpe << EOF#!/bin/sh## Copyright 2006, Freescale Semiconductor Inc.## Set QPE_USE_TOUCHSCREEN to "y" to use touchscreen # otherwise mouse will be used#export HOME=/rootexport QPE_USE_TOUCHSCREEN="$PKG_QTOPIA_WANT_TOUCHSCREEN"# make sure usb input and touchscreen node existmkdir -p /dev/inputtest -c /dev/input/mice || mknod /dev/input/mice c 13 63test -c /dev/ts || mknod /dev/ts c 11 0export QTDIR=/opt/Qtopiaexport QPEDIR=/opt/Qtopiaexport LD_LIBRARY_PATH=/opt/Qtopia/libexport PATH=/opt/Qtopia/bin:\$PATHexport QWS_SIZE="1024x768"if [ _\$QPE_USE_TOUCHSCREEN = "_y" ]then# changing the :/dev/ts part will have no effect as it # is hardcoded in the sourceexport QWS_MOUSE_PROTO="TPanel:/dev/ts"# hide cursor when using touchscreenexport QWS_HIDE_CURSOR="Yes"grep touchscreen /proc/devices > /dev/null || insmod mpc5200_touch.ko# remove pointercal if it is empty[ -f /etc/pointercal -a ! -s /etc/pointercal ] && rm -f /etc/pointercalelse# no QWS_KEYBOARD config it just defaults to /dev/tty0# which means virtual console must be onexport QWS_MOUSE_PROTO="USB:/dev/input/mice"# overide pointer calibration when using mousetouch /etc/pointercal ficd /opt/Qtopia/bin#./qpe > /dev/null 2>&1 &./qpe &EOFchmod 744 $RPM_BUILD_ROOT/%{pfx}/etc/rc.d/rc.qpeecho '1' > $RPM_BUILD_ROOT/%{pfx}/etc/firstuse# setup Storage.confinstall -d $RPM_BUILD_ROOT/%{pfx}/root/Settingscat > $RPM_BUILD_ROOT/%{pfx}/root/Settings/Storage.conf << EOF[rootfs]Name = Internal StorageRemoveable = 0[/dev/sda1]Name = USB Flash DriveRemovable = 1EOF%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -