+#@TYPE: Distribution
+#@NAME: coLinuxoe
+#@DESCRIPTION: Generic OE built distro for the coLinux MACHINE
+
+INHERIT += "package_ipk debian"
+
+# MACHINE decides that linux-colinux is the correct kernel.
+# DISTRO decides whether to build 2.4 or 2.6. Latest coLinux version
+# (0.6.2) uses 2.6 by default, so we'll be following them.
+# PREFERRED_VERSION_linux-colinux = "2.4.28"
+PREFERRED_VERSION_linux-colinux ?= "2.6.10"
+
+IMAGE_FSTYPES =+ "ext2 ext2.gz"
+
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+BOOTSTRAP_EXTRA_DEPENDS += "linux-hotplug"
+BOOTSTRAP_EXTRA_RDEPENDS += "linux-hotplug"
INHERIT += " package_ipk debian"
TARGET_OS = "linux"
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+BOOTSTRAP_EXTRA_DEPENDS += "linux-hotplug"
+BOOTSTRAP_EXTRA_RDEPENDS += "linux-hotplug"
OEINCLUDELOGS = "yes"
KERNEL_CONSOLE = "ttyS0"
TARGET_FPU = "soft"
+
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+BOOTSTRAP_EXTRA_DEPENDS += "linux-hotplug"
+BOOTSTRAP_EXTRA_RDEPENDS += "linux-hotplug"
TARGET_OS ?= "linux"
TARGET_FPU ?= "soft"
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+BOOTSTRAP_EXTRA_DEPENDS += "linux-hotplug"
+BOOTSTRAP_EXTRA_RDEPENDS += "linux-hotplug"
OPENSLUG_EXTRA_INSTALL += "${OPENSLUG_EXTRA_RDEPENDS}"
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+OPENSLUG_EXTRA_DEPENDS += "linux-hotplug"
+OPENSLUG_EXTRA_RDEPENDS += "linux-hotplug"
+
BOOTSTRAP_EXTRA_DEPENDS += "${OPENSLUG_EXTRA_DEPENDS}"
BOOTSTRAP_EXTRA_RDEPENDS += "${OPENSLUG_EXTRA_RDEPENDS}"
INHERIT += " package_ipk debian"
TARGET_OS = "linux"
TARGET_FPU = "soft"
+
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+BOOTSTRAP_EXTRA_DEPENDS += "linux-hotplug"
+BOOTSTRAP_EXTRA_RDEPENDS += "linux-hotplug"
EXTRA_IMAGECMD_ext2.gz = "-r 0 -i 512 -f ${SWITCHBOX_DEVICE_TABLE}"
USE_NLS = "no"
+
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+BOOTSTRAP_EXTRA_DEPENDS += "linux-hotplug"
+BOOTSTRAP_EXTRA_RDEPENDS += "linux-hotplug"
+#@TYPE: Distribution
+#@NAME: WRT54OE Linux
+#@DESCRIPTION: Distribution configuration for the WRT54 Linux
+
+INHERIT += "package_ipk debian"
+
+# Whether to use the old shell hotplug or the new C hotplug is a
+# distribution decision.
+BOOTSTRAP_EXTRA_DEPENDS += "linux-hotplug"
+BOOTSTRAP_EXTRA_RDEPENDS += "linux-hotplug"
+++ /dev/null
---- hotplug/etc/hotplug/net.agent 2005-01-13 21:12:47.143597392 +1300
-+++ hotplug/etc/hotplug/net.agent 2005-01-13 21:17:57.095477544 +1300
-@@ -41,6 +41,9 @@
- debug_mesg assuming $INTERFACE is already up
- exit 0
- ;;
-+ # interfaces that don't go up until attached
-+ usbf)
-+ ;;
- # interfaces that are registered then brought up
- *)
- # NOTE: network configuration relies on administered state,
-@@ -83,6 +86,13 @@
- mesg $1 $ACTION event not handled
- ;;
-
-+attach)
-+ # ifupdown is dumb and won't bring up an interface that it thinks
-+ # might already be configured.
-+ /sbin/ifdown $INTERFACE
-+ exec /sbin/ifup $INTERFACE
-+ ;;
-+
- remove|unregister)
- case $INTERFACE in
- # interfaces that are unregistered after being "down" (?)
-@@ -105,6 +115,16 @@
- mesg $1 $ACTION event not handled
- ;;
-
-+detach)
-+ if [ -x /sbin/ifdown ]; then
-+ debug_mesg invoke ifdown $INTERFACE
-+ exec /sbin/ifdown $INTERFACE
-+ else
-+ mesg "E: /sbin/ifdown not found. You need to install ifupdown package"
-+ fi
-+ mesg $1 $ACTION event not handled
-+ ;;
-+
- *)
- debug_mesg NET $ACTION event for $INTERFACE not supported
- exit 1 ;;
+++ /dev/null
-DESCRIPTION = "This package contains the scripts necessary \
-for hotplug Linux support, and lets you plug in new devices \
-and use them immediately."
-HOMEPAGE = "http://linux-hotplug.sourceforge.net/"
-LICENSE = "GPL"
-SECTION = "base"
-PR = "r8"
-RSUGGESTS = "pciutils usbutils"
-
-SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/hotplug-2004_09_20.tar.gz \
- file://userspecified_hcd.patch;patch=1 \
- file://hotplug-net-agent-usb.patch;patch=1 \
- file://fix-net.agent \
- file://update-usb.usermap \
- file://logcheck-ignore \
- file://sleeve.agent \
- file://sleeve.rc \
- file://mmc.agent \
- file://usbd.agent \
- file://usbd \
- file://sysconfig-hotplug \
- file://sysconfig-usb \
- file://isapnp-exit.diff;patch=1 \
- file://usb-storage"
-
-S = "${WORKDIR}/hotplug-2004_09_20"
-
-INITSCRIPT_NAME = "hotplug"
-INITSCRIPT_PARAMS = "start 40 S . stop 89 0 6 ."
-
-inherit update-rc.d
-
-do_compile () {
- :
-}
-
-oldmandir := "${mandir}"
-oldsbindir := "${sbindir}"
-prefix = ""
-exec_prefix = ""
-FILES_hotplug_append = " ${oldsbindir}"
-FILES_hotplug-doc_append = " ${oldmandir}"
-
-export DEBFIX = "sed -e 's:sysconfig/usb:default/hotplug.usb:'"
-do_install () {
- install -d ${D}/${sysconfdir}/logcheck/ignore.d
- install -d ${D}/${oldmandir}
- install -d ${D}/${oldsbindir}
- #install -d ${D}/${sysconfdir}/default
- oe_runmake prefix=${D}${prefix} exec_prefix=${D}${exec_prefix} \
- etcdir=${D}${sysconfdir} sbindir=${D}${sbindir} \
- mandir=${D}${oldmandir} install
- sh ${WORKDIR}/fix-net.agent ${D}
- install -m 0755 ${WORKDIR}/update-usb.usermap ${D}/${oldsbindir}/
- install -m 0644 ${WORKDIR}/logcheck-ignore ${D}/${sysconfdir}/logcheck/ignore.d/hotplug
- install -m 0755 ${WORKDIR}/sleeve.agent ${D}${sysconfdir}/hotplug/
- install -m 0755 ${WORKDIR}/sleeve.rc ${D}${sysconfdir}/hotplug/
- install -m 0755 ${WORKDIR}/mmc.agent ${D}${sysconfdir}/hotplug/
- install -m 0755 ${WORKDIR}/usbd.agent ${D}${sysconfdir}/hotplug/
- #install -m 0755 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd
- install -d ${D}${sysconfdir}/sysconfig
- install -m 0644 ${WORKDIR}/sysconfig-hotplug ${D}${sysconfdir}/sysconfig/hotplug
- install -m 0644 ${WORKDIR}/sysconfig-usb ${D}/${sysconfdir}/sysconfig/usb
- install -m 0755 ${WORKDIR}/usb-storage ${D}${sysconfdir}/hotplug/usb
-}
+SECTION = "kernel"
+DESCRIPTION = "User Mode Linux Kernel"
+LICENSE = "GPL"
+COLV = "0.6.2"
+
+#http://internap.dl.sourceforge.net/sourceforge/colinux/coLinux-${COLV}.tar.gz
+SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
+ file://colinux-${COLV}.patch;patch=1 \
+ file://defconfig"
+
+S = "${WORKDIR}/linux-${PV}"
+
+inherit kernel
+
+COMPATIBLE_HOST = "i.86.*-linux"
+KERNEL_IMAGETYPE = "vmlinux"
+KERNEL_OUTPUT = "./${KERNEL_IMAGETYPE}"
+
+do_configure() {
+ echo '-co-${COLV}' > localversion-cooperative
+ install -m 0644 ${WORKDIR}/defconfig .config
+ kernel_do_configure
+}
hostap-modules \
hostap-utils \
hostap-daemon \
-hotplug \
+linux-hotplug \
htb-init \
ifplugd \
initscripts \
bridge-utils \
dnsmasq \
hostap-utils \
- hotplug \
+ linux-hotplug \
ifplugd iproute2 iptables \
mobilemesh \
nylon-scripts \
-PR = "r2"
+PR = "r3"
IMAGE_BASENAME = "openslug"
virtual/libc makedevs-native mtd-utils-native slugimage-native nslu2-linksys-firmware nslu2-switchbox-firmware "
DEPENDS = "base-files base-passwd-3.5.7 \
- busybox dropbear hotplug initscripts netbase \
+ busybox dropbear initscripts netbase \
sysvinit tinylogin lrzsz portmap \
ixp4xx-csr ixp425-eth openslug-init \
ipkg-collateral ipkg ipkg-link \
${OPENSLUG_EXTRA_DEPENDS}"
IPKG_INSTALL = "base-files base-passwd \
- busybox dropbear hotplug initscripts netbase \
+ busybox dropbear initscripts netbase \
update-modules sysvinit tinylogin lrzsz portmap \
ixp4xx-csr ixp425-eth openslug-init \
ipkg-collateral ipkg ipkg-link \
PROVIDES = "task-bootstrap"
PN = "task-bootstrap"
PV = "1.0unionroot"
+PR = "r1"
DEFAULT_PREFERENCE = "-1"
# The BOOTSTRAP_EXTRA_ variables are often manipulated by the
return ' '.join(r)
DEPENDS = 'base-files base-passwd-3.5.7 \
- busybox dropbear hotplug initscripts modutils netbase \
+ busybox dropbear initscripts modutils netbase \
sysvinit tinylogin portmap \
modutils-initscripts \
${BOOTSTRAP_EXTRA_DEPENDS} \
unionroot-utils'
RDEPENDS = 'base-files base-passwd busybox \
- hotplug initscripts \
+ initscripts \
netbase sysvinit sysvinit-pidof tinylogin \
modutils-initscripts \
${BOOTSTRAP_EXTRA_RDEPENDS} \
DESCRIPTION = "Core packages required for a basic installation"
MAINTAINER = "Phil Blundell <pb@handhelds.org>"
-PR = "r19"
+PR = "r20"
# The BOOTSTRAP_EXTRA_ variables are often manipulated by the
# MACHINE .conf files, so adjust PACKAGE_ARCH accordingly.
return ' '.join(r)
DEPENDS = 'base-files base-passwd-3.5.7 \
- busybox dropbear hotplug initscripts modutils netbase \
+ busybox dropbear initscripts modutils netbase \
sysvinit tinylogin portmap \
modutils-initscripts \
${BOOTSTRAP_EXTRA_DEPENDS} \
${@bootstrap_modutils_depends(d)}'
RDEPENDS = 'base-files base-passwd busybox \
- hotplug initscripts \
+ initscripts \
netbase sysvinit sysvinit-pidof tinylogin \
modutils-initscripts \
${BOOTSTRAP_EXTRA_RDEPENDS} \