summaryrefslogtreecommitdiff
path: root/multitech/recipes/images/corecdp-base-image.bb
blob: 24011037db9b8fd768eadd234adc3bf7744a7f12 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
inherit image

DISTRO_SSH_DAEMON ?= "dropbear"

# remove kernel package from rootfs to save space
# uImage is flashed to a different partition, so it isn't needed
PACKAGE_REMOVE = "kernel-image-*"
ROOTFS_POSTPROCESS_COMMAND += "opkg-cl ${IPKG_ARGS} -force-depends \
                               remove ${PACKAGE_REMOVE};"

CORE_FEATURES = "u-boot sysfsutils module-init-tools kernel-modules \
                 mtd-utils \
                 usbutils usb-gadget-mode \
                 bash \
                 procps \
                 "

FILESYSTEM_FEATURES = "e2fsprogs e2fsprogs-mke2fs e2fsprogs-fsck \
                       dosfstools \
                       cifs \
                       "

NETWORKING_FEATURES = "ppp \
                       iptables iptables-utils \
					   bridge-utils \
                       netkit-ftp lftp curl \
                       openssl \
                       openssh-sftp-server \
                       rsync \
                       iperf \
					   mii-diag \
                       "

WIFI_FEATURES = " \
                libnl \
                wpa-supplicant \
                wireless-tools \
                iw \
				hostap-daemon hostap-utils \
                "

WL1271_SUPPORT = " \
                ti-compat-wireless-wl12xx wl12xx-firmware \
                ti-wifi-utils \
				wl12xx-scripts \
                "

BLUETOOTH_FEATURES = "bluez4"

TIME_FEATURES = "tzdata tzdata-africa tzdata-americas tzdata-antarctica tzdata-arctic \
				 tzdata-asia tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific \
				 tzdata-misc \
                 cron \
                 ntpdate \
                 "

# mts-io: IO Controller for Multi-Tech hardware.
#         (LEDs, temp sensor, serial lines, and more)
#
# config: Handles default config files stored in /var/config. 
#         /var/config is mounted on separate flash partition so that config
#         files survive flashing of rootfs. See recipe for details.
#
# u-boot-linux-utils: U-Boot environment access from Linux
# ocg-scripts: sample scripts for setting up OCG for various tasks
MULTITECH_FEATURES = "mts-io \
                     mts-id-eeprom \
                     config \
                     u-boot-linux-utils \
                     ocg-scripts \
                     "

# Tools to flash kernel and rootfs on reboot
UPGRADE_FEATURES = "upgrade-reboot mtd-utils-static"

MISC_FEATURES = "minicom lrzsz nano"

# All the packages to be installed
IMAGE_INSTALL = "task-boot \
                util-linux-ng-mount util-linux-ng-umount \
                ${DISTRO_SSH_DAEMON} \
                ${CORE_FEATURES} \
                ${FILESYSTEM_FEATURES} \
                ${NETWORKING_FEATURES} \
                ${TIME_FEATURES} \
                ${MULTITECH_FEATURES} \
                ${UPGRADE_FEATURES} \
                ${MISC_FEATURES} \
                "

# Add Wi-fi/Bluetooth support for devices that support it
IMAGE_INSTALL_append_mtocgd3 = " ${WIFI_FEATURES} ${WL1271_SUPPORT} ${BLUETOOTH_FEATURES} "
IMAGE_INSTALL_append_mtocgd = " ${WIFI_FEATURES} ${WL1271_SUPPORT} ${BLUETOOTH_FEATURES} "
IMAGE_INSTALL_append_mt100eocg-pcie-dk = " ${WIFI_FEATURES} ${WL1271_SUPPORT} ${BLUETOOTH_FEATURES} "

# Add exar usb-serial driver for mtocgd/mtocgd3 hardware
IMAGE_INSTALL_append_mtocgd3 += "vizzini"
IMAGE_INSTALL_append_mtocgd += "vizzini"

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

export IMAGE_BASENAME = "corecdp-base-image"
IMAGE_LINGUAS = ""

require corecdp-tftpboot.inc