@ -1,21 +0,0 @@ |
|||
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# T2 SDE: target/embedded/build.sh |
|||
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|||
# |
|||
# More information can be found in the files COPYING and README. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; version 2 of the License. A copy of the |
|||
# GNU General Public License can be found in the file COPYING. |
|||
# --- T2-COPYRIGHT-NOTE-END --- |
|||
|
|||
pkgloop |
|||
|
|||
imagelocation="$build_toolchain/rootfs" |
|||
. $base/target/$target/build_image.sh |
|||
|
|||
echo_status "Done!" |
|||
|
@ -1,97 +0,0 @@ |
|||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# Filename: target/embedded/build_image.sh |
|||
# Copyright (C) 2006 The OpenSDE Project |
|||
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|||
# |
|||
# More information can be found in the files COPYING and README. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; version 2 of the License. A copy of the |
|||
# GNU General Public License can be found in the file COPYING. |
|||
# --- SDE-COPYRIGHT-NOTE-END --- |
|||
|
|||
. $base/target/share/functions.in |
|||
|
|||
set -e |
|||
|
|||
echo "Preparing root filesystem image from build result ..." |
|||
|
|||
rm -rf $imagelocation{,.squashfs} |
|||
mkdir -p $imagelocation ; cd $imagelocation |
|||
|
|||
find $build_root -printf "%P\n" | sed ' |
|||
|
|||
# stuff we never need |
|||
|
|||
/^TOOLCHAIN/ d; |
|||
/^var\/adm/ d; |
|||
|
|||
/\/include/ d; |
|||
/\/src/ d; |
|||
/\.a$/ d; |
|||
/\.o$/ d; |
|||
/\.old$/ d; |
|||
|
|||
/\/games/ d; |
|||
/\/local/ d; |
|||
/^boot/ d; |
|||
|
|||
# # stuff that would be nice - but is huge and only documentation |
|||
/\/man/ d; |
|||
/\/doc/ d; |
|||
|
|||
# /etc noise |
|||
/^etc\/stone.d/ d; |
|||
/^etc\/cron.d/ d; |
|||
/^etc\/init.d/ d; |
|||
|
|||
/^etc\/skel/ d; |
|||
/^etc\/opt/ d; |
|||
/^etc\/conf/ d; |
|||
/^etc\/rc.d/ d; |
|||
|
|||
/^opt/ d; |
|||
|
|||
/^\/man\// d; |
|||
|
|||
/terminfo\/a\/ansi$/ { p; d; } |
|||
/terminfo\/l\/linux$/ { p; d; } |
|||
/terminfo\/x\/xterm$/ { p; d; } |
|||
/terminfo\/n\/nxterm$/ { p; d; } |
|||
/terminfo\/x\/xterm-color$/ { p; d; } |
|||
/terminfo\/x\/xterm-8bit$/ { p; d; } |
|||
/terminfo\/x\/screen$/ { p; d; } |
|||
/terminfo\/v\/vt100$/ { p; d; } |
|||
/terminfo\/v\/vt200$/ { p; d; } |
|||
/terminfo\/v\/vt220$/ { p; d; } |
|||
/terminfo/ d; |
|||
|
|||
' > tar.input |
|||
|
|||
copy_with_list_from_file $build_root . $PWD/tar.input |
|||
rm tar.input |
|||
|
|||
echo "Preparing root filesystem image from target defined files ..." |
|||
rm -f sbin/init ; ln -s minit sbin/init |
|||
copy_from_source $base/target/$target/rootfs . |
|||
|
|||
echo "Creating links for identical files ..." |
|||
link_identical_files |
|||
|
|||
echo "Creating root filesystem image (squashfs) ..." |
|||
|
|||
if [ "$arch_bigendian" = "yes" ]; then |
|||
sqfsopts="-be" |
|||
else |
|||
sqfsopts="-le" |
|||
fi |
|||
|
|||
mksquashfs $imagelocation{,.squashfs} $sqfsopts > /dev/null |
|||
|
|||
du -sh $imagelocation{,.squashfs} |
|||
|
|||
echo "The image is located at $imagelocation.squasfs." |
|||
|
@ -1,201 +0,0 @@ |
|||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# Filename: target/embedded/config.in |
|||
# Copyright (C) 2007 The OpenSDE Project |
|||
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|||
# |
|||
# More information can be found in the files COPYING and README. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; version 2 of the License. A copy of the |
|||
# GNU General Public License can be found in the file COPYING. |
|||
# --- SDE-COPYRIGHT-NOTE-END --- |
|||
|
|||
#Description: Generic Embedded |
|||
|
|||
comment_id '- Target Style' COMMENT_TARGET_EMBEDDED_STYLE |
|||
choice SDECFG_TARGET_EMBEDDED_STYLE uclibc \ |
|||
uclibc 'uClibc (ugly but many packages to choose from)' \ |
|||
dietlibc 'diet libc (less is more)' |
|||
|
|||
embedded_pkgfilter() { |
|||
local tmp=`mktemp` |
|||
|
|||
cat > $tmp <<-EOT |
|||
# mangle all packages to only build them in the cross stage (1) |
|||
s,^. \(.\)[^ ]*,X \11--------,; |
|||
|
|||
# select some packages (and repositories) explicitely |
|||
|
|||
/ fhs / { p; d; }; |
|||
/ sysfiles / { p; d; }; |
|||
/ iana-etc / { p; d; }; |
|||
/ rocknet / { p; d; }; |
|||
/ embutils / { p; d; }; |
|||
/ disktype / { p; d; }; |
|||
/ minised / { p; d; }; |
|||
/ pdksh / { p; d; }; |
|||
/ udev / { p; d; }; |
|||
/ hotplug++ / { p; d; }; |
|||
/ cpio / { p; d; }; |
|||
/ mkinitrd / { p; d; }; |
|||
/ stone / { p; d; }; |
|||
|
|||
/ linux-header / { p; d; }; |
|||
|
|||
# we need those for some broken packages that need updating |
|||
/ automake / { s,^. [^ ]*,X 0---------,; p; d; } |
|||
/ libtool / { s,^. [^ ]*,X 0---------,; p; d; } |
|||
|
|||
/ binutils / { s,^. [^ ]*,X 0---------,; p; d; } |
|||
/ gcc / { s,^. [^ ]*,X 0---------,; p; d; } |
|||
/ squashfs-tools / { s,^. [^ ]*,X 0---------,; p; d; } |
|||
|
|||
/ pkgconfig / { s,^. [^ ]*,X 0---------,; p; d; } |
|||
|
|||
/ linux26 / { p; d; }; |
|||
|
|||
# / modutils / { p; d; }; |
|||
/ module-init-tools / { p; d; }; |
|||
|
|||
/ libowfat / { p; d; }; |
|||
/ minit / { p; d; }; |
|||
/ fgetty / { p; d; }; |
|||
|
|||
/ bash / { p; d; }; |
|||
/ gawk / { p; d; }; |
|||
/ coreutils / { p; d; }; |
|||
/ find-utils / { p; d; }; |
|||
/ util-linux / { p; d; }; |
|||
/ procps / { p; d; }; |
|||
/ minised / { p; d; }; |
|||
/ sed / { p; d; }; |
|||
/ ugrep / { p; d; }; |
|||
|
|||
/ less / { p; d; }; |
|||
/ mmv / { p; d; }; |
|||
# / bc / { p; d; }; |
|||
# screen # does not cross compile right now |
|||
/ curl / { p; d; }; |
|||
# wget # cross builds - but not needed right now |
|||
|
|||
/ elvis-tiny / { p; d; }; |
|||
/ zile / { p; d; }; |
|||
|
|||
/ zlib / { p; d; }; |
|||
/ gzip / { p; d; }; |
|||
/ bzip2 / { p; d; }; |
|||
/ tar / { p; d; }; |
|||
|
|||
/ ncurses / { p; d; }; |
|||
|
|||
/ popt / { p; d; }; |
|||
/ libpcap / { p; d; }; |
|||
/ ppp / { p; d; }; |
|||
|
|||
/ iptables / { p; d; }; |
|||
/ net-tools / { p; d; }; |
|||
/ iproute2 / { p; d; }; |
|||
/ dropbear / { p; d; }; |
|||
/ rsync / { p; d; }; |
|||
|
|||
/ vlan / { p; d; }; |
|||
|
|||
/ ncurses / { p; d; }; |
|||
|
|||
/ grep / { p; d; }; |
|||
/ make / { p; d; }; |
|||
#/ pkgconfig / { p; d; }; |
|||
|
|||
/ udev / { p; d; }; |
|||
/ hotplug++ / { p; d; }; |
|||
/ cpio / { p; d; }; |
|||
|
|||
/ mininet / { p; d; }; |
|||
/ rng-tools / { p; d; }; |
|||
/ libowfat / { p; d; }; |
|||
/ gatling / { p; d; }; |
|||
/ udhcp / { p; d; }; |
|||
/ clockspeed / { p; d; }; |
|||
/ djbdns / { p; d; }; |
|||
/ tftp-hpa / { p; d; }; |
|||
/ file / { p; d; }; |
|||
/ diffutils / { p; d; }; |
|||
/ mktemp / { p; d; }; |
|||
/ time / { p; d; }; |
|||
/ psmisc / { p; d; }; |
|||
/ hdparm / { p; d; }; |
|||
|
|||
# road to x.org |
|||
/ bigreqsproto / { p; d; }; |
|||
/ inputproto / { p; d; }; |
|||
/ kbproto / { p; d; }; |
|||
/ xcmiscproto / { p; d; }; |
|||
/ xextproto / { p; d; }; |
|||
/ xf86bigfontproto / { p; d; }; |
|||
/ xproto / { p; d; }; |
|||
/ xtrans / { p; d; }; |
|||
|
|||
EOT |
|||
|
|||
case "$SDECFG_TARGET_EMBEDDED_STYLE" in |
|||
dietlibc) |
|||
cat >> $tmp <<-EOT |
|||
/ dietlibc / { p; d; }; |
|||
EOT |
|||
;; |
|||
*) |
|||
cat >> $tmp <<-EOT |
|||
/ uclibc / { p; d; }; |
|||
/ perl perl / { p; d; }; |
|||
/ strongswan / { p; d; }; |
|||
/ libpng / { p; d; }; |
|||
|
|||
/ openssl / { p; d; }; |
|||
/ gmp / { p; d; }; |
|||
|
|||
/ irda-utils / { p; d; }; |
|||
|
|||
/ unionfs / { p; d; }; |
|||
/ dosfstools / { p; d; }; |
|||
|
|||
EOT |
|||
;; |
|||
esac |
|||
|
|||
cat >> $tmp <<-EOT |
|||
# disable the rest |
|||
/.*/ { s/^X /O / ; p; d; }; |
|||
EOT |
|||
|
|||
sed -f $tmp |
|||
rm $tmp |
|||
} |
|||
|
|||
pkgfilter embedded_pkgfilter |
|||
|
|||
SDECFGSET_IMAGE='none' |
|||
SDECFGSET_PKGFILE_TYPE='tar.bz2' |
|||
SDECFGSET_PKGFILE_VER=1 |
|||
|
|||
# we must set it here, since the logic pkgenables the selected libc |
|||
SDECFGSET_LIBC="$SDECFG_TARGET_EMBEDDED_STYLE" |
|||
SDECFGSET_DIETLIBC_DYN=0 |
|||
|
|||
if [ $SDECFG_TARGET_EMBEDDED_STYLE == dietlibc ]; then |
|||
SDECFGSET_STATIC=1 |
|||
else |
|||
SDECFGSET_STATIC=0 |
|||
fi |
|||
|
|||
SDECFGSET_INIT='minit' |
|||
|
|||
SDECFGSET_OPT='size' |
|||
|
|||
SDECFGSET_DO_REBUILD_STAGE=0 |
|||
SDECFGSET_DISABLE_NLS=1 |
|||
|
|||
SDECFGSET_PKG_BUSYBOX_SYMLINKS=1 |
|||
|
@ -1,27 +0,0 @@ |
|||
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# T2 SDE: target/embedded/kernel.conf.sh |
|||
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|||
# |
|||
# More information can be found in the files COPYING and README. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; version 2 of the License. A copy of the |
|||
# GNU General Public License can be found in the file COPYING. |
|||
# --- T2-COPYRIGHT-NOTE-END --- |
|||
# here we disable all OSS modules - because they suck |
|||
|
|||
echo "desktop target -> disabling oss sound modules ..." |
|||
|
|||
sed -i -e "s/CONFIG_VIDEO_DEV=./# CONFIG_VIDEO_DEV is not set/" \ |
|||
-e "s/CONFIG_DVB=./# CONFIG_DVB is not set/" \ |
|||
-e "s/CONFIG_FB=./# CONFIG_FB is not set/" \ |
|||
-e "s/CONFIG_SOUND=./# CONFIG_SOUND is not set/" \ |
|||
-e "s/CONFIG_PHONE=./# CONFIG_PHONE is not set/" \ |
|||
-e "s/CONFIG_I2O=./# CONFIG I2O is not set/" \ |
|||
-e "s/CONFIG_AGP=./# CONFIG AGP is not set/" \ |
|||
-e "s/CONFIG_DRM=./# CONFIG DRM is not set/" \ |
|||
-e "s/CONFIG_\(.*\)GAMEPORT=./# CONFIG_\1GAMEPORT is not set/" $1 |
|||
|
@ -1,5 +0,0 @@ |
|||
none /dev/pts devpts defaults |
|||
none /dev/shm ramfs defaults |
|||
/proc /proc proc defaults |
|||
none /sys sysfs defaults |
|||
#none /tmp tmpfs defaults |
@ -1 +0,0 @@ |
|||
root:x:0: |
@ -1,7 +0,0 @@ |
|||
|
|||
T2 based embedded system. http://www.t2-project.org/ |
|||
|
|||
\t \d -- \U online -- line [\l]. |
|||
|
|||
Welcome to \n (T2 - Kernel \r). |
|||
- |
@ -1,4 +0,0 @@ |
|||
mountall |
|||
hostname |
|||
ifconfiglo |
|||
fgetty |
@ -1 +0,0 @@ |
|||
tts/0 |
@ -1,16 +0,0 @@ |
|||
#!/bin/sh |
|||
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|||
# |
|||
# T2 SDE: target/embedded/rootfs/etc/minit/fgetty/7/run |
|||
# Copyright (C) 2006 The T2 SDE Project |
|||
# |
|||
# More information can be found in the files COPYING and README. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; version 2 of the License. A copy of the |
|||
# GNU General Public License can be found in the file COPYING. |
|||
# --- T2-COPYRIGHT-NOTE-END --- |
|||
|
|||
exec /sbin/fgetty $* |
@ -1,9 +0,0 @@ |
|||
kbd |
|||
hwclock |
|||
fgetty/1 |
|||
fgetty/2 |
|||
fgetty/3 |
|||
fgetty/4 |
|||
fgetty/5 |
|||
fgetty/6 |
|||
fgetty/7 |
@ -1 +0,0 @@ |
|||
embedded |
@ -1 +0,0 @@ |
|||
root::0:0:root:/root:/bin/sh |
@ -1,7 +0,0 @@ |
|||
|
|||
if [ -w / ] ; then |
|||
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
|||
else |
|||
PATH="/usr/local/bin:/usr/bin:/bin" |
|||
fi |
|||
|