-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsole-image.bb
114 lines (98 loc) · 1.78 KB
/
console-image.bb
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
106
107
108
109
110
111
112
113
SUMMARY = "A console Lighthouse image"
HOMEPAGE = "https://github.com/project-lighthouse/yocto-meta-layer"
LICENSE = "MIT"
IMAGE_LINGUAS = "en-us"
inherit core-image
DEPENDS += "bcm2835-bootfiles"
CORE_OS = " \
openssh openssh-keygen openssh-sftp-server \
term-prompt \
tzdata \
"
WIFI_SUPPORT = " \
crda \
dhcpcd \
iw \
linux-firmware-brcm43430 \
linux-firmware-ralink \
linux-firmware-rtl8192ce \
linux-firmware-rtl8192cu \
linux-firmware-rtl8192su \
wireless-tools \
wpa-supplicant \
"
DEV_SDK_INSTALL = " \
coreutils \
diffutils \
file \
gettext \
git \
ldd \
perl-modules \
python-pyalsaaudio \
python-modules \
python3-modules \
python3-pydoc \
"
EXTRA_TOOLS_INSTALL = " \
dosfstools \
e2fsprogs \
e2fsprogs-resize2fs \
ethtool \
findutils \
iperf \
iproute2 \
less \
netcat \
parted \
procps \
rsync \
sysfsutils \
tcpdump \
unzip \
util-linux \
wget \
zip \
"
RPI_STUFF = " \
bcm2835-tests \
rpio \
rpi-gpio \
userland \
wiringpi \
"
ALSA += " \
alsa-dev \
alsa-lib \
alsa-utils \
alsa-utils-scripts \
"
LIGHTHOUSE = " \
espeak \
vim \
lrzsz \
opencv \
lighthouse \
samba \
avahi-daemon \
"
IMAGE_INSTALL += " \
${CORE_OS} \
${DEV_SDK_INSTALL} \
${EXTRA_TOOLS_INSTALL} \
${RPI_STUFF} \
${WIFI_SUPPORT} \
${ALSA} \
${LIGHTHOUSE} \
"
set_local_timezone() {
ln -sf /usr/share/zoneinfo/EST5EDT ${IMAGE_ROOTFS}/etc/localtime
}
disable_bootlogd() {
echo BOOTLOGD_ENABLE=no > ${IMAGE_ROOTFS}/etc/default/bootlogd
}
ROOTFS_POSTPROCESS_COMMAND += " \
set_local_timezone ; \
disable_bootlogd ; \
"
export IMAGE_BASENAME = "console-image"