summaryrefslogtreecommitdiff
path: root/conf/distro/openslug.conf
blob: db12ea6ab32bb2cdb63e6448908c7a29bddb8ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#@TYPE: Distribution
#@NAME: OpenSlug
#@DESCRIPTION: OpenSlug Linux Distribution for the NSLU2

TARGET_FPU = "soft"
TARGET_OS = "linux"

USE_NLS ?= "no"

INHERIT += " package_ipk debian nslu2_flashimg"

IMAGE_FSTYPES = "jffs2"

OPENSLUG_DEVICE_TABLE = "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-openslug.txt')}"
EXTRA_IMAGECMD_jffs2 = "--pad --big-endian --eraseblock=0x20000 -D ${OPENSLUG_DEVICE_TABLE}"

OPENSLUG_EXTRA_DEPENDS  += "virtual/kernel module-init-tools mtd-utils modutils-initscripts"
OPENSLUG_EXTRA_RDEPENDS += "kernel-module-usbnet kernel-module-usbserial  \
kernel-module-pegasus  kernel-module-p8022 kernel-module-kaweth \
module-init-tools mtd-utils modutils-initscripts"

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"
OPENSLUG_EXTRA_DEPENDS += "hotplug-ng"
OPENSLUG_EXTRA_RDEPENDS += "hotplug-ng"

BOOTSTRAP_EXTRA_DEPENDS  += "${OPENSLUG_EXTRA_DEPENDS}"
BOOTSTRAP_EXTRA_RDEPENDS += "${OPENSLUG_EXTRA_RDEPENDS}"

PREFERRED_PROVIDER_virtual/kernel ?= "openslug-kernel"
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"