blob: d21e5cfe6fc410bde5e9c20f51787bcac09d0abd (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#
# FooNAS distribution - a NAS-centric distribution
# based on openprotium
#
DISTRO_NAME = "foonas"
# This is only changed for a release
DISTRO_VERSION = ".dev-snapshot-${SRCDATE}"
DISTRO_TYPE = "alpha"
# These should be merged once the bogofeed change has been committed.
FEED_URIS = "foonas-packages##http://ipkg.foonas.org/${MACHINE}/cross/1.0-dev/packages"
FEED_URIS += "foonas-kernel##http://ipkg.foonas.org/${MACHINE}/cross/1.0-dev/kernel"
TARGET_OS = "linux"
HOTPLUG = "udev"
# Various defines for Thecus N2100
FOONAS_KERNEL_n2100 = "kernel-module-ext2 kernel-module-usb-storage"
FOONAS_SUPPORT_n2100 += "fis"
BOOTSTRAP_EXTRA_RDEPENDS_n2100 = "udev mdadm"
IMAGE_PREPROCESS_COMMAND += "sed -i -es,^id:5:initdefault:,id:3:initdefault:, ${IMAGE_ROOTFS}/etc/inittab;"
IMAGE_PREPROCESS_COMMAND += "sed -i -es,^root::0,root:BTMzOOAQfESg6:0, ${IMAGE_ROOTFS}/etc/passwd;"
IMAGE_PREPROCESS_COMMAND += "sed -i -es,^VERBOSE=no,VERBOSE=very, ${IMAGE_ROOTFS}/etc/default/rcS;"
FOONAS_DEVICE_TABLE = "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-slugos.txt')}"
# Various defines for QNAP Turbostation
FOONAS_KERNEL_turbostation = "kernel-module-ext3 kernel-module-minix \
kernel-module-usb-storage"
FOONAS_SUPPORT_turbostation += "uboot-utils"
BOOTSTRAP_EXTRA_RDEPENDS_turbostation = "udev mdadm"
# Various defines for Linkstations
FOONAS_KERNEL_lsppchg = "kernel-module-dm-mod kernel-module-raid1 \
kernel-module-raid0 kernel-module-raid456 \
kernel-module-multipath"
FOONAS_KERNEL_lsppchd = "${FOONAS_KERNEL_lsppchg}"
FOONAS_SUPPORT_lsppchd = "uboot-utils dtc"
FOONAS_SUPPORT_lsppchg = ${FOONAS_SUPPORT_lsppchd}
IMAGE_FSTYPES_lsppchd = "tar.gz"
IMAGE_FSTYPES_lsppchg = ${IMAGE_FSTYPES_lsppchd}
IMAGE_POSTPROCESS_COMMAND += '${MACHINE}_pack_image;'
#
# Naming schemes
#
INHERIT += "debian"
#
# Packaging and output format
#
INHERIT += "package_ipk"
IMAGE_BASENAME = "foonas"
require conf/distro/include/sane-srcdates.inc
require conf/distro/include/foonas.inc
|