diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
commit | 8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch) | |
tree | eb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro/recipes-linaro | |
download | meta-linaro-dizzy-enea.tar.gz |
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro/recipes-linaro')
28 files changed, 577 insertions, 0 deletions
diff --git a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-console-login b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-console-login new file mode 100755 index 0000000..cf482e6 --- /dev/null +++ b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-console-login | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
4 | |||
5 | # Start auto-login for root at consoles | ||
6 | exec openvt -c 1 -- /usr/bin/auto-root-login | ||
diff --git a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty new file mode 100755 index 0000000..7b181bc --- /dev/null +++ b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-getty | |||
@@ -0,0 +1,38 @@ | |||
1 | #!/bin/sh -e | ||
2 | |||
3 | [ -f /etc/default/autogetty ] && . /etc/default/autogetty | ||
4 | |||
5 | [ 1 -gt $ENABLED ] && exit | ||
6 | |||
7 | while true; do | ||
8 | for arg in $(cat /proc/cmdline); do | ||
9 | case $arg in | ||
10 | console=*) | ||
11 | tty=${arg#console=} | ||
12 | tty=${tty#/dev/} | ||
13 | secure=`echo "${tty}" | cut -f1 -d,` | ||
14 | secure=`/bin/egrep "^${secure}$" /etc/securetty || true` | ||
15 | |||
16 | if [ -n "$tty" -a -n "${secure}" ]; then | ||
17 | PORT=${tty%%,*} | ||
18 | |||
19 | tmp=${tty##$PORT,} | ||
20 | SPEED=${tmp%%n*} | ||
21 | |||
22 | # if console=/dev/tty* without speed is given | ||
23 | [ $SPEED = $PORT ] && SPEED=115200 | ||
24 | BITS=${tmp##${SPEED}n} | ||
25 | |||
26 | # 8bit serial is default | ||
27 | [ -z $BITS ] && BITS=8 | ||
28 | # [ 8 -eq $BITS ] && GETTY_ARGS="$GETTY_ARGS -8 " | ||
29 | |||
30 | [ -z $SPEED ] && SPEED='115200,57600,38400,19200,9600' | ||
31 | |||
32 | GETTY_ARGS="$AUTOGETTY_ARGS $GETTY_ARGS $SPEED $PORT" | ||
33 | /sbin/getty $GETTY_ARGS | ||
34 | unset GETTY_ARGS | ||
35 | fi | ||
36 | esac | ||
37 | done | ||
38 | done | ||
diff --git a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-root-login b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-root-login new file mode 100755 index 0000000..c9b1092 --- /dev/null +++ b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-root-login | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | exec /bin/login -f root | ||
diff --git a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-serial-console b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-serial-console new file mode 100755 index 0000000..12da6fc --- /dev/null +++ b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/auto-serial-console | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
4 | DAEMON=/usr/bin/auto-getty | ||
5 | NAME="auto-getty" | ||
6 | |||
7 | case "$1" in | ||
8 | start) | ||
9 | echo -n "Starting auto-serial-console: " | ||
10 | start-stop-daemon -S -b -n $NAME --exec $DAEMON | ||
11 | echo "done" | ||
12 | ;; | ||
13 | stop) | ||
14 | echo -n "Stopping auto-serial-console: " | ||
15 | start-stop-daemon -K -n $NAME | ||
16 | echo "done" | ||
17 | ;; | ||
18 | restart) | ||
19 | $0 stop | ||
20 | $0 start | ||
21 | ;; | ||
22 | *) | ||
23 | echo "Usage: auto-serial-console { start | stop | restart }" >&2 | ||
24 | exit 1 | ||
25 | ;; | ||
26 | esac | ||
27 | |||
28 | exit 0 | ||
29 | |||
diff --git a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/autogetty b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/autogetty new file mode 100644 index 0000000..c0f888e --- /dev/null +++ b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console/autogetty | |||
@@ -0,0 +1,5 @@ | |||
1 | # here you can provide what to run instead of /bin/login | ||
2 | AUTOGETTY_ARGS="-n -l /usr/bin/auto-root-login" | ||
3 | |||
4 | # Should autogetty be enabled? | ||
5 | ENABLED=1 | ||
diff --git a/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console_0.1.bb b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console_0.1.bb new file mode 100644 index 0000000..040c64b --- /dev/null +++ b/meta-linaro/recipes-linaro/auto-serial-console/auto-serial-console_0.1.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "Auto Serial Console and Auto Login scripts" | ||
2 | DESCRIPTION = "Scripts to auto login with root and call the console tty from the kernel cmd line" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "\ | ||
6 | file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
7 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ | ||
8 | " | ||
9 | |||
10 | PR = "r2" | ||
11 | |||
12 | inherit update-rc.d | ||
13 | |||
14 | SRC_URI = "\ | ||
15 | file://autogetty \ | ||
16 | file://auto-root-login \ | ||
17 | file://auto-getty \ | ||
18 | file://auto-console-login \ | ||
19 | file://auto-serial-console \ | ||
20 | " | ||
21 | |||
22 | PACKAGES =+ "auto-console-login" | ||
23 | RDEPENDS_${PN} = "auto-console-login" | ||
24 | |||
25 | FILES_auto-console-login = "\ | ||
26 | ${bindir}/auto-root-login \ | ||
27 | ${sysconfdir}/init.d/auto-console-login \ | ||
28 | " | ||
29 | |||
30 | S = "${WORKDIR}" | ||
31 | |||
32 | INITSCRIPT_PACKAGES = "${PN} auto-console-login" | ||
33 | INITSCRIPT_NAME_auto-serial-console = "auto-serial-console" | ||
34 | INITSCRIPT_NAME_auto-console-login = "auto-console-login" | ||
35 | INITSCRIPT_PARAMS = "start 99 5 ." | ||
36 | |||
37 | do_install () { | ||
38 | install -m 0755 -d ${D}${sysconfdir}/default | ||
39 | install -m 0644 ${WORKDIR}/autogetty ${D}${sysconfdir}/default/autogetty | ||
40 | |||
41 | install -m 0755 -d ${D}${sysconfdir}/init.d | ||
42 | install -m 0755 ${WORKDIR}/auto-console-login ${D}${sysconfdir}/init.d/auto-console-login | ||
43 | install -m 0755 ${WORKDIR}/auto-serial-console ${D}${sysconfdir}/init.d/auto-serial-console | ||
44 | |||
45 | install -m 0755 -d ${D}${bindir} | ||
46 | install -m 0755 ${WORKDIR}/auto-root-login ${D}${bindir}/auto-root-login | ||
47 | install -m 0755 ${WORKDIR}/auto-getty ${D}${bindir}/auto-getty | ||
48 | } | ||
diff --git a/meta-linaro/recipes-linaro/files-injection/files-injection.bb b/meta-linaro/recipes-linaro/files-injection/files-injection.bb new file mode 100644 index 0000000..de4677b --- /dev/null +++ b/meta-linaro/recipes-linaro/files-injection/files-injection.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "Random files to be injected into rootfs" | ||
2 | LICENSE = "CLOSED" | ||
3 | |||
4 | SRC_URI = "file://files-to-inject.tar.xz" | ||
5 | |||
6 | S = "${WORKDIR}/files-to-inject/" | ||
7 | |||
8 | # all files will be put in /opt/ directory with keeping tarball structure | ||
9 | |||
10 | do_install() { | ||
11 | install -d ${D}/opt/ | ||
12 | cp -a ${S} ${D}/opt/ | ||
13 | } | ||
14 | |||
15 | FILES_${PN} = "/opt" | ||
16 | |||
17 | # How to use it? | ||
18 | # | ||
19 | # unpack files/files-to-inject.tar.xz tarball, add own files, compress it. | ||
20 | # add "files-injection" into CORE_IMAGE_EXTRA_INSTALL in your build/conf/local.conf | ||
21 | # build rootfs | ||
22 | # | ||
diff --git a/meta-linaro/recipes-linaro/files-injection/files/files-to-inject.tar.xz b/meta-linaro/recipes-linaro/files-injection/files/files-to-inject.tar.xz new file mode 100644 index 0000000..50e169d --- /dev/null +++ b/meta-linaro/recipes-linaro/files-injection/files/files-to-inject.tar.xz | |||
Binary files differ | |||
diff --git a/meta-linaro/recipes-linaro/files-injection/files/files-to-inject/empty b/meta-linaro/recipes-linaro/files-injection/files/files-to-inject/empty new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/meta-linaro/recipes-linaro/files-injection/files/files-to-inject/empty | |||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-alip.bb b/meta-linaro/recipes-linaro/images/linaro-image-alip.bb new file mode 100644 index 0000000..8a76907 --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-alip.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | DESCRIPTION = "Linaro image with basic X11 and firefox" | ||
2 | |||
3 | inherit core-image | ||
4 | |||
5 | IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-openssh" | ||
6 | |||
7 | LICENSE = "MIT" | ||
8 | |||
9 | IMAGE_INSTALL += "firefox gator openssh-sftp-server" | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-arago.bb b/meta-linaro/recipes-linaro/images/linaro-image-arago.bb new file mode 100644 index 0000000..ac61feb --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-arago.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "Arago based image for testing" | ||
2 | DESCRIPTION = "Image capable of booting and testing device." | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
5 | |||
6 | require linaro-image-common.inc | ||
7 | |||
8 | # List of packages to install | ||
9 | IMAGE_INSTALL += "\ | ||
10 | bc \ | ||
11 | bonnie++ \ | ||
12 | bridge-utils \ | ||
13 | evtest \ | ||
14 | hdparm \ | ||
15 | iozone3 \ | ||
16 | iperf \ | ||
17 | lmbench \ | ||
18 | memtester \ | ||
19 | rt-tests \ | ||
20 | " | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-common.inc b/meta-linaro/recipes-linaro/images/linaro-image-common.inc new file mode 100644 index 0000000..223df3a --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-common.inc | |||
@@ -0,0 +1,93 @@ | |||
1 | inherit core-image | ||
2 | |||
3 | IMAGE_FEATURES += "ssh-server-openssh nfs-server package-management" | ||
4 | |||
5 | HUGETLB_armv7a = "libhugetlbfs-tests" | ||
6 | HUGETLB_aarch64 = "libhugetlbfs-tests" | ||
7 | HUGETLB ?= "" | ||
8 | |||
9 | IMAGE_INSTALL += " \ | ||
10 | bash \ | ||
11 | e2fsprogs-e2fsck \ | ||
12 | kexec-tools \ | ||
13 | linaro-lava-tests \ | ||
14 | nss-myhostname \ | ||
15 | procps \ | ||
16 | stress \ | ||
17 | stress-dbg \ | ||
18 | sudo \ | ||
19 | util-linux-fsck \ | ||
20 | " | ||
21 | |||
22 | SDK_IMAGE_INSTALL += "\ | ||
23 | acpica \ | ||
24 | bison \ | ||
25 | boost-date-time \ | ||
26 | boost-filesystem \ | ||
27 | boost-graph \ | ||
28 | boost-iostreams \ | ||
29 | boost-program-options \ | ||
30 | boost-regex \ | ||
31 | boost-signals \ | ||
32 | boost-system \ | ||
33 | boost-thread \ | ||
34 | cmake \ | ||
35 | curl \ | ||
36 | dmidecode \ | ||
37 | efibootmgr \ | ||
38 | elfutils-dev \ | ||
39 | expat \ | ||
40 | flex \ | ||
41 | gator \ | ||
42 | gd \ | ||
43 | git \ | ||
44 | glog \ | ||
45 | icu \ | ||
46 | idlestat \ | ||
47 | libbz2 \ | ||
48 | libc-client-dev \ | ||
49 | libcap \ | ||
50 | libdwarf-dev \ | ||
51 | libevent-fb \ | ||
52 | libmcrypt \ | ||
53 | libmemcached \ | ||
54 | libmysqlclient-r \ | ||
55 | libpam \ | ||
56 | libpcre \ | ||
57 | libunwind \ | ||
58 | libxml2 \ | ||
59 | lshw \ | ||
60 | ltp \ | ||
61 | ncurses \ | ||
62 | onig \ | ||
63 | openldap \ | ||
64 | openssh-sftp-server \ | ||
65 | openssl \ | ||
66 | perf \ | ||
67 | pm-qa \ | ||
68 | powerdebug \ | ||
69 | powertop \ | ||
70 | python \ | ||
71 | python-misc \ | ||
72 | python-multiprocessing \ | ||
73 | python-numpy \ | ||
74 | python-scons \ | ||
75 | python-shell \ | ||
76 | python-threading \ | ||
77 | qemu \ | ||
78 | readline \ | ||
79 | sshfs-fuse \ | ||
80 | tbb \ | ||
81 | trace-cmd \ | ||
82 | xserver-xorg-xvfb \ | ||
83 | xz \ | ||
84 | zlib \ | ||
85 | ${HUGETLB} \ | ||
86 | " | ||
87 | |||
88 | IMAGE_PREPROCESS_COMMAND += "make_boot_verbose; " | ||
89 | |||
90 | |||
91 | fakeroot make_boot_verbose () { | ||
92 | sed -i -e 's/VERBOSE=no/VERBOSE=yes/' ${IMAGE_ROOTFS}/etc/default/rcS | ||
93 | } | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-kvm.bb b/meta-linaro/recipes-linaro/images/linaro-image-kvm.bb new file mode 100644 index 0000000..e9512fa --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-kvm.bb | |||
@@ -0,0 +1,6 @@ | |||
1 | require linaro-image-common.inc | ||
2 | |||
3 | DESCRIPTION = "A small image for Linaro KVM validation." | ||
4 | |||
5 | IMAGE_INSTALL += "qemu kernel-image kernel-bootwrapper" | ||
6 | |||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-lamp.bb b/meta-linaro/recipes-linaro/images/linaro-image-lamp.bb new file mode 100644 index 0000000..2eec075 --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-lamp.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | require linaro-image-common.inc | ||
2 | |||
3 | IMAGE_INSTALL += " \ | ||
4 | apache2 \ | ||
5 | fwts \ | ||
6 | acpitests \ | ||
7 | grub \ | ||
8 | mysql5-server \ | ||
9 | mysql5-client \ | ||
10 | php-fpm \ | ||
11 | php-fpm-apache2 \ | ||
12 | packagegroup-core-buildessential \ | ||
13 | ${SDK_IMAGE_INSTALL}" | ||
14 | |||
15 | IMAGE_FEATURES += "\ | ||
16 | dev-pkgs \ | ||
17 | staticdev-pkgs \ | ||
18 | tools-debug \ | ||
19 | tools-sdk \ | ||
20 | " | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-leg-java.bb b/meta-linaro/recipes-linaro/images/linaro-image-leg-java.bb new file mode 100644 index 0000000..c0f2c47 --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-leg-java.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | require linaro-image-lamp.bb | ||
2 | |||
3 | DESCRIPTION = "A Lamp-based image for Linaro Enterprise Java validation." | ||
4 | |||
5 | IMAGE_INSTALL += " \ | ||
6 | alsa-conf \ | ||
7 | alsa-lib-dev \ | ||
8 | alsa-lib \ | ||
9 | alsa-oss \ | ||
10 | alsa-utils-alsaconf \ | ||
11 | alsa-utils-alsamixer \ | ||
12 | cups-dev \ | ||
13 | ganglia \ | ||
14 | git \ | ||
15 | htop \ | ||
16 | links \ | ||
17 | openjdk-8-doc \ | ||
18 | openjdk-8-jdk \ | ||
19 | openjdk-8-jre \ | ||
20 | openjdk-8-jtreg \ | ||
21 | openjdk-8-source \ | ||
22 | sed \ | ||
23 | tmux \ | ||
24 | vim \ | ||
25 | x11vnc \ | ||
26 | xauth \ | ||
27 | xserver-xorg-xvfb \ | ||
28 | zip \ | ||
29 | " | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-lng.bb b/meta-linaro/recipes-linaro/images/linaro-image-lng.bb new file mode 100644 index 0000000..7d46d68 --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-lng.bb | |||
@@ -0,0 +1,64 @@ | |||
1 | require linaro-image-common.inc | ||
2 | |||
3 | IMAGE_INSTALL += " \ | ||
4 | arndale-pre-boot \ | ||
5 | bridge-utils \ | ||
6 | calibrator \ | ||
7 | curl \ | ||
8 | cronie \ | ||
9 | daq-odp \ | ||
10 | fping \ | ||
11 | git \ | ||
12 | lmbench \ | ||
13 | lng-network-config \ | ||
14 | ltp \ | ||
15 | netperf \ | ||
16 | odp \ | ||
17 | openssh-sftp-server \ | ||
18 | openvswitch \ | ||
19 | packagegroup-core-buildessential \ | ||
20 | procps \ | ||
21 | python-numpy \ | ||
22 | qemu \ | ||
23 | rt-tests \ | ||
24 | snort \ | ||
25 | trace-cmd \ | ||
26 | tunctl \ | ||
27 | usecpu \ | ||
28 | " | ||
29 | |||
30 | IMAGE_INSTALL_append_armv7a = " \ | ||
31 | latency-test \ | ||
32 | systemtap \ | ||
33 | valgrind \ | ||
34 | trinity-example \ | ||
35 | " | ||
36 | |||
37 | IMAGE_INSTALL_append_aarch64 = " \ | ||
38 | trinity-example \ | ||
39 | " | ||
40 | |||
41 | IMAGE_INSTALL_append_qemux86 = " \ | ||
42 | " | ||
43 | |||
44 | IMAGE_FEATURES += "\ | ||
45 | dev-pkgs \ | ||
46 | staticdev-pkgs \ | ||
47 | tools-debug \ | ||
48 | tools-sdk \ | ||
49 | " | ||
50 | IMAGE_FSTYPES_append_qemux86 += "cpio.gz" | ||
51 | IMAGE_FSTYPES_lng-x86-64 = "tar.gz cpio.gz" | ||
52 | IMAGE_FSTYPES_lng-rt-x86-64 = "tar.gz cpio.gz" | ||
53 | |||
54 | EXTRA_IMAGE_FEATURES_append_qemux86 = " autoserial" | ||
55 | FEATURE_PACKAGES_autoserial = "auto-serial-console" | ||
56 | |||
57 | IMAGE_PREPROCESS_COMMAND_qemux86 += "qemux86_fixup;" | ||
58 | |||
59 | qemux86_fixup() { | ||
60 | sed -i '/getty 115200 ttyS0/d' ${IMAGE_ROOTFS}/etc/inittab | ||
61 | |||
62 | echo "auto eth0" >> ${IMAGE_ROOTFS}/etc/network/interfaces | ||
63 | echo "iface eth0 inet dhcp" >> ${IMAGE_ROOTFS}/etc/network/interfaces | ||
64 | } | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-minimal-initramfs.bb b/meta-linaro/recipes-linaro/images/linaro-image-minimal-initramfs.bb new file mode 100644 index 0000000..f928797 --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-minimal-initramfs.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "Initramfs image for kernel boot testing" | ||
2 | DESCRIPTION = "Small image capable of booting a device." | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
5 | |||
6 | BAD_RECOMMENDATIONS += "busybox-syslog" | ||
7 | |||
8 | export IMAGE_BASENAME = "linaro-image-minimal-initramfs" | ||
9 | |||
10 | IMAGE_FSTYPES = "${INITRAMFS_FSTYPES} ${INITRAMFS_FSTYPES}.u-boot" | ||
11 | |||
12 | # Do not pollute the initrd image with rootfs features | ||
13 | IMAGE_FEATURES = "" | ||
14 | |||
15 | # List of packages to install | ||
16 | IMAGE_INSTALL = "\ | ||
17 | base-passwd \ | ||
18 | bash \ | ||
19 | busybox \ | ||
20 | bzip2 \ | ||
21 | dhcp-client \ | ||
22 | dosfstools \ | ||
23 | e2fsprogs \ | ||
24 | e2fsprogs-mke2fs \ | ||
25 | gzip \ | ||
26 | initramfs-boot-linaro \ | ||
27 | net-tools \ | ||
28 | parted \ | ||
29 | tar \ | ||
30 | u-boot-mkimage \ | ||
31 | wget \ | ||
32 | " | ||
33 | |||
34 | # Keep extra language files from being installed | ||
35 | IMAGE_LINGUAS = "" | ||
36 | |||
37 | IMAGE_ROOTFS_SIZE = "8192" | ||
38 | |||
39 | inherit core-image image_types_uboot | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-minimal.bb b/meta-linaro/recipes-linaro/images/linaro-image-minimal.bb new file mode 100644 index 0000000..abe579b --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-minimal.bb | |||
@@ -0,0 +1,2 @@ | |||
1 | require recipes-core/images/core-image-minimal.bb | ||
2 | require linaro-image-common.inc | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-sdk.bb b/meta-linaro/recipes-linaro/images/linaro-image-sdk.bb new file mode 100644 index 0000000..560da60 --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-sdk.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | require linaro-image-common.inc | ||
2 | |||
3 | DESCRIPTION = "A small SDK based image for Linaro development work." | ||
4 | |||
5 | IMAGE_INSTALL += "${SDK_IMAGE_INSTALL}" | ||
6 | |||
7 | IMAGE_FEATURES += "\ | ||
8 | dev-pkgs \ | ||
9 | staticdev-pkgs \ | ||
10 | tools-debug \ | ||
11 | tools-sdk \ | ||
12 | " | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-image-toolchain-benchmark.bb b/meta-linaro/recipes-linaro/images/linaro-image-toolchain-benchmark.bb new file mode 100644 index 0000000..16aa531 --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-image-toolchain-benchmark.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Base image for toolchain benchmarking" | ||
2 | DESCRIPTION = "Image capable of benchmarking the toolchain." | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
5 | |||
6 | require recipes-core/images/core-image-minimal.bb | ||
7 | require linaro-image-common.inc | ||
8 | |||
9 | IMAGE_INSTALL += "\ | ||
10 | bzip2 \ | ||
11 | cpufrequtils \ | ||
12 | netcat \ | ||
13 | openssh-sftp-server \ | ||
14 | rsync \ | ||
15 | tar \ | ||
16 | util-linux \ | ||
17 | xz \ | ||
18 | " | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-sysroot-alip.bb b/meta-linaro/recipes-linaro/images/linaro-sysroot-alip.bb new file mode 100644 index 0000000..3d0d1cc --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-sysroot-alip.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | require linaro-image-alip.bb | ||
2 | |||
3 | IMAGE_FEATURES += "\ | ||
4 | dev-pkgs \ | ||
5 | " | ||
6 | |||
7 | IMAGE_PREPROCESS_COMMAND += "do_delete_not_needed_dirs; " | ||
8 | |||
9 | fakeroot do_delete_not_needed_dirs () { | ||
10 | for dir in bin boot dev etc home media mnt opt proc run sbin sys tmp var; | ||
11 | do | ||
12 | rm -rf ${IMAGE_ROOTFS}/${dir} | ||
13 | done | ||
14 | |||
15 | for dir in arm-oe-linux-gnueabi aarch64-oe-linux bin games sbin share src | ||
16 | do | ||
17 | rm -rf ${IMAGE_ROOTFS}/usr/${dir} | ||
18 | done | ||
19 | } | ||
diff --git a/meta-linaro/recipes-linaro/images/linaro-sysroot-lamp.bb b/meta-linaro/recipes-linaro/images/linaro-sysroot-lamp.bb new file mode 100644 index 0000000..67eeb0f --- /dev/null +++ b/meta-linaro/recipes-linaro/images/linaro-sysroot-lamp.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | inherit core-image | ||
2 | |||
3 | IMAGE_INSTALL = " \ | ||
4 | packagegroup-core-standalone-hhvm-sdk-target \ | ||
5 | " | ||
6 | |||
7 | IMAGE_FEATURES += "\ | ||
8 | dev-pkgs \ | ||
9 | staticdev-pkgs \ | ||
10 | " | ||
11 | |||
12 | IMAGE_PREPROCESS_COMMAND += "do_delete_not_needed_dirs; " | ||
13 | |||
14 | fakeroot do_delete_not_needed_dirs () { | ||
15 | for dir in bin boot dev etc home media mnt opt proc run sbin sys tmp var; | ||
16 | do | ||
17 | rm -rf ${IMAGE_ROOTFS}/${dir} | ||
18 | done | ||
19 | |||
20 | for dir in aarch64-oe-linux bin games sbin share src | ||
21 | do | ||
22 | rm -rf ${IMAGE_ROOTFS}/usr/${dir} | ||
23 | done | ||
24 | } | ||
diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/LICENSE b/meta-linaro/recipes-linaro/linaro-lava-tests/files/LICENSE new file mode 100644 index 0000000..296f7d6 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/LICENSE | |||
@@ -0,0 +1,19 @@ | |||
1 | Copyright (C) 2012 Linaro Ltd. | ||
2 | |||
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
4 | this software and associated documentation files (the "Software"), to deal in | ||
5 | the Software without restriction, including without limitation the rights to | ||
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
7 | of the Software, and to permit persons to whom the Software is furnished to do | ||
8 | so, subject to the following conditions: | ||
9 | |||
10 | The above copyright notice and this permission notice shall be included in all | ||
11 | copies or substantial portions of the Software. | ||
12 | |||
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
19 | SOFTWARE. | ||
diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.c b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.c new file mode 100644 index 0000000..247bbe7 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.c | |||
@@ -0,0 +1,8 @@ | |||
1 | #include <stdio.h> | ||
2 | |||
3 | int main(void) | ||
4 | { | ||
5 | printf ("hello world\n"); | ||
6 | |||
7 | return 0; | ||
8 | } | ||
diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.cc b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.cc new file mode 100644 index 0000000..c0b335d --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/hello.cc | |||
@@ -0,0 +1,8 @@ | |||
1 | #include <iostream> | ||
2 | |||
3 | int main(void) | ||
4 | { | ||
5 | std::cout << "hello world" << std::endl; | ||
6 | |||
7 | return 0; | ||
8 | } | ||
diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/info.php b/meta-linaro/recipes-linaro/linaro-lava-tests/files/info.php new file mode 100644 index 0000000..554a22c --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/info.php | |||
@@ -0,0 +1,5 @@ | |||
1 | <?php | ||
2 | |||
3 | phpinfo(); | ||
4 | |||
5 | ?> | ||
diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/files/mysql.php b/meta-linaro/recipes-linaro/linaro-lava-tests/files/mysql.php new file mode 100644 index 0000000..258b184 --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/files/mysql.php | |||
@@ -0,0 +1,9 @@ | |||
1 | <?php | ||
2 | |||
3 | $link = mysql_connect('localhost', 'root', ''); | ||
4 | if (!$link) { | ||
5 | die('MySQL error: ' . mysql_error()); | ||
6 | } | ||
7 | echo 'Connected with MySQL'; | ||
8 | mysql_close($link); | ||
9 | ?> | ||
diff --git a/meta-linaro/recipes-linaro/linaro-lava-tests/linaro-lava-tests.bb b/meta-linaro/recipes-linaro/linaro-lava-tests/linaro-lava-tests.bb new file mode 100644 index 0000000..389d2ff --- /dev/null +++ b/meta-linaro/recipes-linaro/linaro-lava-tests/linaro-lava-tests.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "Scripts and files for LAVA tests" | ||
2 | LICENSE = "Expat" | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3725c2bb543d06ff759f9db9b5d986ac" | ||
4 | PR = "r2" | ||
5 | |||
6 | SRC_URI = "\ | ||
7 | file://hello.c \ | ||
8 | file://hello.cc \ | ||
9 | file://info.php \ | ||
10 | file://mysql.php \ | ||
11 | file://LICENSE \ | ||
12 | " | ||
13 | |||
14 | S = "${WORKDIR}" | ||
15 | |||
16 | do_install() { | ||
17 | install -d ${D}/home/root ${D}/usr/share/apache2/htdocs/ | ||
18 | install -m 0644 hello.* ${D}/home/root/ | ||
19 | install -m 0644 *.php ${D}/usr/share/apache2/htdocs/ | ||
20 | } | ||
21 | |||
22 | FILES_${PN} = "/" | ||