From: Lukasz Wojciechowski Date: Fri, 31 Mar 2017 17:47:25 +0000 (+0200) Subject: Add RPi3 image X-Git-Tag: accepted/tizen/common/20170403.190755~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c67a4b93b41415cc7c4f394cba8578bee128487b;p=profile%2Fcommon%2Fmeta.git Add RPi3 image Change-Id: Iee0a75ce372338372f0b5160ee428c42c51d4e7f Signed-off-by: Lukasz Wojciechowski --- diff --git a/common-targets.yaml b/common-targets.yaml index 59b3396..0a83432 100644 --- a/common-targets.yaml +++ b/common-targets.yaml @@ -24,6 +24,7 @@ Targets: - common-boot-armv7l-odroidxu3.yaml - common-boot-armv7l-artik5.yaml - common-boot-armv7l-artik10.yaml + - common-headless-2parts-armv7l-rpi3.yaml - common-headless-3parts-armv7l-artik.yaml - common-wayland-2parts-armv7l.yaml - common-wayland-3parts-armv7l-odroidu3.yaml diff --git a/common.yaml b/common.yaml index fe8c39c..e085a5f 100644 --- a/common.yaml +++ b/common.yaml @@ -192,3 +192,32 @@ Wayland: Repos: [] NoChrootScripts: - buildname + +RPi3: + Part: common-mbr-2parts-rpi3 + Groups: + - Common Adaptation + - Common Adaptation RPi3 + PostScripts: + - common-adaptation-rpi3 + - generic-base + - common-base + - generic-console-tools + - common-packaging + - generic-adaptation + - common-adaptation + - generic-middleware + - common-middleware + - generic-applications + - generic-bluetooth + - generic-multimedia + - generic-desktop-applications + - common-desktop-applications + - generic-crosswalk + - common-crosswalk + - common-license + - generic-security + - common-cleanup-rpi3 + Repos: [] + NoChrootScripts: + - buildname diff --git a/ks/common-headless-2parts-armv7l-rpi3.yaml b/ks/common-headless-2parts-armv7l-rpi3.yaml new file mode 100644 index 0000000..65477a1 --- /dev/null +++ b/ks/common-headless-2parts-armv7l-rpi3.yaml @@ -0,0 +1,14 @@ +Name: common-headless-2parts-armv7l-rpi3 +Architecture: armv7l +Schedule: "*" +Active: True +Platform: RPi3 +Part: common-mbr-2parts-rpi3 +Mic2Options: -f loop --pack-to=@NAME@.tar.gz +FileName: common-headless-2parts-armv7l-rpi3 +Repos: + - common-wayland_armv7l + - base_arm +Groups: + - Common Adaptation RPi3 + diff --git a/partitions/common-mbr-2parts-rpi3 b/partitions/common-mbr-2parts-rpi3 new file mode 100644 index 0000000..2028e16 --- /dev/null +++ b/partitions/common-mbr-2parts-rpi3 @@ -0,0 +1,2 @@ +part / --size=200 --ondisk mmcblk0p --fstype=ext4 --label=rootfs --extoptions="-J size=16" +part /opt/ --size=100 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0" diff --git a/patterns/common-adaptation-rpi3.yaml b/patterns/common-adaptation-rpi3.yaml new file mode 100644 index 0000000..9e2d53b --- /dev/null +++ b/patterns/common-adaptation-rpi3.yaml @@ -0,0 +1,61 @@ +Summary: Common Adaptation RPi3 +Description: Common Adaptation RPi3 +Name: common-adaptation-rpi3 +Packages: +- amd +- appcore-agent +- aul +- bash +- buxton2 +- capi-network-wifi +- capi-network-wifi-manager +- connman +- coreutils +- cynara +- dbus +- dlogutil +- e2fsprogs +- filesystem +- fsck-msdos +- grep +- gum-utils +- gzip +- iotcon +- iotivity +- kmod +- kmod-compat +- launchpad +- libdlog +- model-config-artik +- net-config +- net-tools +- newfs-msdos +- pam +- pam-modules-extra +- pepper +- pepper-evdev +- pepper-keyrouter +- procps +- psmisc +- rpm +- rpm-security-plugin +- sdbd +- security-manager +- setup +- shadow-utils-adm +- systemd +- system-plugin-headless +- system-plugin-init_wrapper +- system-plugin-rpi3 +- tar +- tizen-release +- tlm +- tlm-config-common-singleseat +- tpk-backend +- unzip +- util-linux +- vconf-internal-keys +- vconf-internal-keys-config-profile_common +- wpa_supplicant +- xz +- zip diff --git a/scripts/common-adaptation-rpi3.post b/scripts/common-adaptation-rpi3.post new file mode 100644 index 0000000..252aa1d --- /dev/null +++ b/scripts/common-adaptation-rpi3.post @@ -0,0 +1,5 @@ +#!/bin/sh +echo "############### common-adaptation-rpi3.post ################" + +pkg_initdb --ro +#rpm -e boost-filesystem libiri minizip manifest-parser tpk-manifest-handlers pkgmgr-info-parser xdelta3 app-installers tpk-backend diff --git a/scripts/common-cleanup-rpi3.post b/scripts/common-cleanup-rpi3.post new file mode 100644 index 0000000..aac98e7 --- /dev/null +++ b/scripts/common-cleanup-rpi3.post @@ -0,0 +1,7 @@ +#!/bin/sh +echo "############### common-cleanup-rpi3.post ################" + +# remove manuals, docs and headers +rm -rf /usr/include +rm -rf /usr/share/man +rm -rf /usr/share/doc diff --git a/scripts/common-license.post b/scripts/common-license.post new file mode 100644 index 0000000..46fe909 --- /dev/null +++ b/scripts/common-license.post @@ -0,0 +1,52 @@ +#!/bin/sh +echo "############### common-license.post ################" + +LICENSE_DIR=/usr/share/licenses +LICENSE_FILE=/usr/share/license.html +MD5_TEMP_FILE=/usr/share/temp_license_md5 + +if [[ -f $LICENSE_FILE ]]; then + rm -f $LICENSE_FILE +fi + +if [[ -f $MD5_TEMP_FILE ]]; then + rm -f $MD5_TEMP_FILE +fi + + +cd $LICENSE_DIR +LICENSE_LIST=`ls */*` + +for INPUT in $LICENSE_LIST; do + if [[ -f $INPUT ]]; then + PKG_NAME=`echo $INPUT|cut -d'/' -f1` + echo `md5sum $INPUT` $PKG_NAME >> $MD5_TEMP_FILE + fi +done + +MD5_LIST=`cat $MD5_TEMP_FILE|awk '{print $1}'|sort -u` + +echo "" >> $LICENSE_FILE +echo "" >> $LICENSE_FILE +echo "" >> $LICENSE_FILE +echo "" >> $LICENSE_FILE +echo "" >> $LICENSE_FILE +echo "" >> $LICENSE_FILE + +for INPUT in $MD5_LIST; do + PKG_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $3}'` + FILE_LIST=`cat $MD5_TEMP_FILE|grep $INPUT|awk '{print $2}'` + PKG_FILE=`echo $FILE_LIST |awk '{print $1}'` + + echo "$PKG_LIST :" >> $LICENSE_FILE + cat $PKG_FILE >> $LICENSE_FILE + echo >> $LICENSE_FILE + echo >> $LICENSE_FILE + echo >> $LICENSE_FILE +done + +echo "" >> $LICENSE_FILE +echo "" >> $LICENSE_FILE +echo "" >> $LICENSE_FILE + +rm -rf $LICENSE_DIR/* $MD5_TEMP_FILE