summaryrefslogtreecommitdiff
path: root/recipes-core/images/mlinux-minimal-image.bb
blob: 890b2ae9669c2613f1d80ae6c801d3edc60bb0f7 (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
# The correct syntax for a machine append is:
# VARIABLE_append_mtcdt
# append must be before the machine name.
DESCRIPTION = "mLinux minimal image"
LICENSE = "MIT"

inherit core-image
inherit mlinux-image

IMAGE_LINGUAS = ""
IMAGE_FEATURES_append = " ssh-server-openssh package-management"

# Don't wipe out CORE_FEATURES from minimal image
CORE_FEATURES_append = " \
                 packagegroup-core-boot packagegroup-distro-base \
                 packagegroup-base-ext2 \
                 packagegroup-base-usbhost packagegroup-base-usbgadget \
                 udev-extraconf usb-gadget-mode \
                 sysfsutils module-init-tools \
                 bash procps \ 
                 openssh-sftp-server \
                 util-linux-mount util-linux-umount \
                 dpkg-start-stop \
		         sudo \
                 ${CORE_IMAGE_EXTRA_INSTALL} \
                 mlinux-feed-configs \
		         useradd \
                 mts-io-sysfs \
                 "

CORE_FEATURES_append = " mtd-utils mtd-utils-jffs2 fstab-at91"

CORE_FEATURES_append_mtcap = " mt-dt-overlay "

NETWORKING_FEATURES = "ppp curl iproute2 \
                       iptables iputils \
                       "

# 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 a separate flash partition so that config
#         files survive flashing of rootfs. See recipe for details.
#
# set-rs485: enables RS485 half-duplex mode for a given tty device
#
# mtcap does not need mts-io-util, but it is required for LoRa 2.1 images

MULTITECH_FEATURES = "kernel-module-mts-io \
			mts-io-noarch  \
			mts-io-util \
			config \
			mts-id-eeprom \
			set-rs485 \
			radio-reset \
            upgrade-reboot"

MULTITECH_MTAC = ""
MULTITECH_MTAC_append_mtcdt = " \
		        kernel-module-mtac \
			kernel-module-mtac-eth \
			kernel-module-mtac-gpiob \
			kernel-module-mtac-lora \
			kernel-module-mtac-mfser \
			kernel-module-mtac-pulse \
			kernel-module-mtac-xdot"

MULTITECH_BB = ""

UPGRADE_FEATURES = "mtd-utils-static"

CONSOLE = "sysvinit-inittab-start"

IMAGE_INSTALL = "${CORE_FEATURES} \
                 ${NETWORKING_FEATURES} \
                 ${UPGRADE_FEATURES} \
                 ${MULTITECH_FEATURES} \
                 ${MULTITECH_MTAC} \
                 ${MULTITECH_BB} \
                 ${CONSOLE} \
                 "