commit | author | age
|
52646c
|
1 |
SUMMARY = "A multimedia wth full command image for production" |
849fbd
|
2 |
LICENSE = "MIT" |
G |
3 |
|
|
4 |
inherit core-image |
|
5 |
|
|
6 |
# additional free disk space created in Kbytes |
|
7 |
#IMAGE_OVERHEAD_FACTOR = "1.0" |
|
8 |
#IMAGE_ROOTFS_EXTRA_SPACE = "512000" |
|
9 |
|
|
10 |
inherit extrausers |
|
11 |
# Create the password hash with following command on host: |
281a7f
|
12 |
# >> mkpasswd -m sha256crypt password -S abcd6789 |
849fbd
|
13 |
# Remember to escape the character $ in the resulting hash |
G |
14 |
|
281a7f
|
15 |
# Set the root password: |
G |
16 |
#PASSWD="\$5\$abcd6789\$Vuv1aLz04ZwhxgsB3lOQbwy1XUS6PJ.8h2A7.9HoUd3" |
849fbd
|
17 |
EXTRA_USERS_PARAMS = "\ |
G |
18 |
usermod -p '${PASSWD}' root; \ |
|
19 |
" |
281a7f
|
20 |
|
G |
21 |
## Select Image Features |
|
22 |
IMAGE_FEATURES += " \ |
|
23 |
hwcodecs \ |
|
24 |
ssh-server-openssh \ |
|
25 |
package-management \ |
|
26 |
" |
|
27 |
|
|
28 |
CONFLICT_DISTRO_FEATURES = "directfb" |
|
29 |
|
52646c
|
30 |
CORE_IMAGE_EXTRA_INSTALL_BASE += " \ |
281a7f
|
31 |
packagegroup-base-wifi \ |
G |
32 |
packagegroup-imx-isp \ |
|
33 |
packagegroup-imx-security \ |
|
34 |
packagegroup-fsl-tools-audio \ |
|
35 |
packagegroup-core-full-cmdline \ |
|
36 |
packagegroup-tools-bluetooth \ |
|
37 |
packagegroup-core-ssh-openssh \ |
|
38 |
packagegroup-fsl-gstreamer1.0 \ |
|
39 |
packagegroup-fsl-gstreamer1.0-full \ |
52646c
|
40 |
packagegroup-fsl-tools-benchmark \ |
G |
41 |
packagegroup-fsl-opencv-imx \ |
281a7f
|
42 |
packagegroup-qt6-modules \ |
G |
43 |
packagegroup-misc-utils \ |
|
44 |
" |
|
45 |
|
52646c
|
46 |
CORE_IMAGE_EXTRA_INSTALL_BASE += " \ |
281a7f
|
47 |
kernel-modules \ |
G |
48 |
firmwared linux-firmware \ |
|
49 |
powertop tzdata ppp vim \ |
|
50 |
xz lrzsz rsync dos2unix \ |
|
51 |
gnupg parted inetutils \ |
|
52 |
hostapd wireless-tools iw \ |
52646c
|
53 |
i2c-tools spidev-test spitools \ |
281a7f
|
54 |
libgpiod libgpiod-tools \ |
52646c
|
55 |
fb-test fbgrab libdrm \ |
281a7f
|
56 |
opencv zbar v4l-utils yavta \ |
G |
57 |
alsa-state pulseaudio-server \ |
b89468
|
58 |
python3 python3-pip tmux \ |
281a7f
|
59 |
openssh-sftp openssh-sftp-server \ |
G |
60 |
memtester pcsc-tools stunnel ntp \ |
b89468
|
61 |
curl evtest cpufrequtils iperf3 \ |
52646c
|
62 |
dosfstools ethtool iproute2 modemmanager \ |
281a7f
|
63 |
e2fsprogs-mke2fs e2fsprogs-resize2fs \ |
52646c
|
64 |
cryptodev-module openssl-bin \ |
G |
65 |
" |
|
66 |
|
|
67 |
# For machine igkboard-imx6ull |
|
68 |
CORE_IMAGE_EXTRA_INSTALL = " \ |
|
69 |
${CORE_IMAGE_EXTRA_INSTALL_BASE} \ |
|
70 |
" |
|
71 |
|
|
72 |
# For machine igkboard-imx8mp |
|
73 |
CORE_IMAGE_EXTRA_INSTALL:igkboard-imx8mp = " \ |
|
74 |
${CORE_IMAGE_EXTRA_INSTALL_BASE} \ |
|
75 |
packagegroup-fsl-tools-gpu \ |
|
76 |
packagegroup-fsl-tools-gpu-external \ |
|
77 |
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'weston-init', '', d)} \ |
|
78 |
git gcc gcc-symlinks binutils automake cmake autoconf freerdp \ |
281a7f
|
79 |
" |
G |
80 |
|
|
81 |
modify_rootfs() { |
|
82 |
|
|
83 |
# Modify default environment |
|
84 |
echo "alias ls='ls --color=auto'" >> ${IMAGE_ROOTFS}/etc/profile |
|
85 |
|
|
86 |
# Update wpa_supplicant service |
|
87 |
sed -i "/^After=/d" ${IMAGE_ROOTFS}/lib/systemd/system/wpa_supplicant@.service |
|
88 |
} |
|
89 |
|
|
90 |
# Remove unused files in rootfs |
|
91 |
doclean_rootfs() { |
|
92 |
|
|
93 |
# remove unsed test apps |
|
94 |
rm -rf ${IMAGE_ROOTFS}/unit_tests |
|
95 |
|
|
96 |
# remove unsed firmware |
|
97 |
mkdir -p ${IMAGE_ROOTFS}/lib/firmware/.bak |
|
98 |
|
|
99 |
mv ${IMAGE_ROOTFS}/lib/firmware/imx* ${IMAGE_ROOTFS}/lib/firmware/.bak |
|
100 |
mv ${IMAGE_ROOTFS}/lib/firmware/nxp* ${IMAGE_ROOTFS}/lib/firmware/.bak |
|
101 |
mv ${IMAGE_ROOTFS}/lib/firmware/mediatek ${IMAGE_ROOTFS}/lib/firmware/.bak |
|
102 |
mv ${IMAGE_ROOTFS}/lib/firmware/mt76* ${IMAGE_ROOTFS}/lib/firmware/.bak |
|
103 |
mv ${IMAGE_ROOTFS}/lib/firmware/rtl* ${IMAGE_ROOTFS}/lib/firmware/.bak |
|
104 |
|
|
105 |
rm -rf ${IMAGE_ROOTFS}/lib/firmware/* |
|
106 |
mv ${IMAGE_ROOTFS}/lib/firmware/.bak/* ${IMAGE_ROOTFS}/lib/firmware/ |
52646c
|
107 |
rm -rf ${IMAGE_ROOTFS}/lib/firmware/imx*.elf |
281a7f
|
108 |
rm -rf ${IMAGE_ROOTFS}/lib/firmware/.bak |
G |
109 |
} |
|
110 |
|
|
111 |
ROOTFS_POSTPROCESS_COMMAND += "modify_rootfs; doclean_rootfs; " |