From e489d245a43d7bd339922e204d749b5b3d73b24f Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 20 Dec 2011 23:13:21 +0100 Subject: [PATCH] target: removed old embedded target --- target/embedded/build.sh | 21 -- target/embedded/build_image.sh | 97 --------- target/embedded/config.in | 201 ------------------ target/embedded/kernel.conf.sh | 27 --- target/embedded/rootfs/etc/fstab | 5 - target/embedded/rootfs/etc/group | 1 - target/embedded/rootfs/etc/issue | 7 - .../embedded/rootfs/etc/minit/default/depends | 4 - .../embedded/rootfs/etc/minit/fgetty/7/params | 1 - .../rootfs/etc/minit/fgetty/7/respawn | 0 target/embedded/rootfs/etc/minit/fgetty/7/run | 16 -- .../embedded/rootfs/etc/minit/fgetty/depends | 9 - .../embedded/rootfs/etc/minit/hostname/params | 1 - target/embedded/rootfs/etc/passwd | 1 - target/embedded/rootfs/etc/profile | 7 - 15 files changed, 398 deletions(-) delete mode 100644 target/embedded/build.sh delete mode 100644 target/embedded/build_image.sh delete mode 100644 target/embedded/config.in delete mode 100644 target/embedded/kernel.conf.sh delete mode 100644 target/embedded/rootfs/etc/fstab delete mode 100644 target/embedded/rootfs/etc/group delete mode 100644 target/embedded/rootfs/etc/issue delete mode 100644 target/embedded/rootfs/etc/minit/default/depends delete mode 100644 target/embedded/rootfs/etc/minit/fgetty/7/params delete mode 100644 target/embedded/rootfs/etc/minit/fgetty/7/respawn delete mode 100755 target/embedded/rootfs/etc/minit/fgetty/7/run delete mode 100644 target/embedded/rootfs/etc/minit/fgetty/depends delete mode 100644 target/embedded/rootfs/etc/minit/hostname/params delete mode 100644 target/embedded/rootfs/etc/passwd delete mode 100644 target/embedded/rootfs/etc/profile diff --git a/target/embedded/build.sh b/target/embedded/build.sh deleted file mode 100644 index 7f13d1c..0000000 --- a/target/embedded/build.sh +++ /dev/null @@ -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!" - diff --git a/target/embedded/build_image.sh b/target/embedded/build_image.sh deleted file mode 100644 index e8fcdfd..0000000 --- a/target/embedded/build_image.sh +++ /dev/null @@ -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." - diff --git a/target/embedded/config.in b/target/embedded/config.in deleted file mode 100644 index 2986c33..0000000 --- a/target/embedded/config.in +++ /dev/null @@ -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 - diff --git a/target/embedded/kernel.conf.sh b/target/embedded/kernel.conf.sh deleted file mode 100644 index c8a5de5..0000000 --- a/target/embedded/kernel.conf.sh +++ /dev/null @@ -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 - diff --git a/target/embedded/rootfs/etc/fstab b/target/embedded/rootfs/etc/fstab deleted file mode 100644 index 928ad71..0000000 --- a/target/embedded/rootfs/etc/fstab +++ /dev/null @@ -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 diff --git a/target/embedded/rootfs/etc/group b/target/embedded/rootfs/etc/group deleted file mode 100644 index 1dbf901..0000000 --- a/target/embedded/rootfs/etc/group +++ /dev/null @@ -1 +0,0 @@ -root:x:0: diff --git a/target/embedded/rootfs/etc/issue b/target/embedded/rootfs/etc/issue deleted file mode 100644 index f84544f..0000000 --- a/target/embedded/rootfs/etc/issue +++ /dev/null @@ -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). -- diff --git a/target/embedded/rootfs/etc/minit/default/depends b/target/embedded/rootfs/etc/minit/default/depends deleted file mode 100644 index efabb5f..0000000 --- a/target/embedded/rootfs/etc/minit/default/depends +++ /dev/null @@ -1,4 +0,0 @@ -mountall -hostname -ifconfiglo -fgetty diff --git a/target/embedded/rootfs/etc/minit/fgetty/7/params b/target/embedded/rootfs/etc/minit/fgetty/7/params deleted file mode 100644 index 4e094b3..0000000 --- a/target/embedded/rootfs/etc/minit/fgetty/7/params +++ /dev/null @@ -1 +0,0 @@ -tts/0 diff --git a/target/embedded/rootfs/etc/minit/fgetty/7/respawn b/target/embedded/rootfs/etc/minit/fgetty/7/respawn deleted file mode 100644 index e69de29..0000000 diff --git a/target/embedded/rootfs/etc/minit/fgetty/7/run b/target/embedded/rootfs/etc/minit/fgetty/7/run deleted file mode 100755 index 2a5686d..0000000 --- a/target/embedded/rootfs/etc/minit/fgetty/7/run +++ /dev/null @@ -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 $* diff --git a/target/embedded/rootfs/etc/minit/fgetty/depends b/target/embedded/rootfs/etc/minit/fgetty/depends deleted file mode 100644 index 050075a..0000000 --- a/target/embedded/rootfs/etc/minit/fgetty/depends +++ /dev/null @@ -1,9 +0,0 @@ -kbd -hwclock -fgetty/1 -fgetty/2 -fgetty/3 -fgetty/4 -fgetty/5 -fgetty/6 -fgetty/7 diff --git a/target/embedded/rootfs/etc/minit/hostname/params b/target/embedded/rootfs/etc/minit/hostname/params deleted file mode 100644 index 80e21b7..0000000 --- a/target/embedded/rootfs/etc/minit/hostname/params +++ /dev/null @@ -1 +0,0 @@ -embedded diff --git a/target/embedded/rootfs/etc/passwd b/target/embedded/rootfs/etc/passwd deleted file mode 100644 index bcaab64..0000000 --- a/target/embedded/rootfs/etc/passwd +++ /dev/null @@ -1 +0,0 @@ -root::0:0:root:/root:/bin/sh diff --git a/target/embedded/rootfs/etc/profile b/target/embedded/rootfs/etc/profile deleted file mode 100644 index 21909f1..0000000 --- a/target/embedded/rootfs/etc/profile +++ /dev/null @@ -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 -