aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-linaro/images/linaro-image-common.inc
blob: 96c327703cf96f146c02fc16cdfd58a38358bc02 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
inherit core-image

IMAGE_FEATURES += "ssh-server-openssh nfs-server package-management"

HUGETLB:armv7a = "libhugetlbfs-tests"
HUGETLB:aarch64 = "libhugetlbfs-tests"
HUGETLB ?= ""

FWTS:armv7a = ""
FWTS:armv7ab = ""
FWTS ?= "fwts"

IMAGE_INSTALL += " \
    bash \
    e2fsprogs-e2fsck \
    kexec-tools \
    linaro-lava-tests \
    procps \
    stress \
    stress-dbg \
    sudo \
    util-linux-fsck \
    ${@bb.utils.contains("MACHINE_FEATURES", "optee", "optee-test optee-client", "", d)} \
   "

SDK_IMAGE_INSTALL += "\
    acpica \
    acpitests \
    bc \
    bison \
    boost-date-time \
    boost-filesystem \
    boost-graph \
    boost-iostreams \
    boost-program-options \
    boost-regex \
    boost-signals \
    boost-system \
    boost-thread \
    cmake \
    curl \
    dmidecode \
    efibootmgr \
    elfutils-dev \
    expat \
    flex \
    ${FWTS} \
    gator \
    gd \
    git \
    glog \
    icu \
    idlestat \
    iozone3 \
    libbz2 \
    uw-imap-dev \
    libcap \
    libdwarf-dev \
    libevent \
    libmcrypt \
    libmemcached \
    libmysqlclient-r \
    libpam \
    libpcre \
    libunwind \
    libxml2 \
    lshw \
    ltp \
    ncurses \
    onig \
    openldap \
    openssh-sftp-server \
    openssl \
    perf \
    pm-qa \
    powerdebug \
    powertop \
    python \
    python-misc \
    python-multiprocessing \
    python-numpy \
    python-scons \
    python-shell \
    python-threading \
    qemu \
    readline \
    rt-tests \
    sshfs-fuse \
    tbb \
    trace-cmd \
    xserver-xorg-xvfb \
    xz \
    zlib \
    ${HUGETLB} \
    "

ROOTFS_POSTPROCESS_COMMAND += "do_systemd_network ; do_hacknfs ;"

# The boot will fail if you have (k)NFSD disabled or no nfs modules installed
do_hacknfs () {
	rm -f ${IMAGE_ROOTFS}/lib/systemd/system/sysinit.target.wants/proc-fs-nfsd.mount
}

do_systemd_network () {
        install -d ${IMAGE_ROOTFS}${sysconfdir}/systemd/network
        cat << EOF > ${IMAGE_ROOTFS}${sysconfdir}/systemd/network/10-en.network
[Match]
Name=en*

[Network]
DHCP=yes
EOF

        cat << EOF > ${IMAGE_ROOTFS}${sysconfdir}/systemd/network/11-eth.network
[Match]
Name=eth*

[Network]
DHCP=yes
EOF
}