summaryrefslogtreecommitdiff
path: root/recipes/images/corecdp-base-image.bb
blob: d82a206032ade3872e391ef6647a97b21b41baf1 (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
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 \
                 "

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

NETWORKING_FEATURES = "ppp \
                       iptables iptables-utils \
                       atftp netkit-ftp lftp curl \
                       openssl \
                       "

TIME_FEATURES = "tzdata \
                 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
MULTITECH_FEATURES = "mts-io \
                     mts-id-eeprom \
                     config \
                     u-boot-linux-utils \
                     "

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

MISC_FEATURES = "minicom 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} \
                "

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

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

require corecdp-tftpboot.inc