blob: 845bfa6af857497a59d9191c0a03433c8de6cb34 (
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
|
arch i686 targets armv7l:cross-arm
targettype cross-arm package qemu-accel-armv7l
autoreqprov off
extension -cross
post "set -x"
post "if [ $(uname -m) = armv7l ]; then"
post " builtin echo armv7l arch"
post " ln -sf %{our_path}/lib/libnsl.so.1 /lib/libnsl.so.1 || true"
post "fi"
post "# load the binfmt_misc module"
post "if [ ! -d /proc/sys/fs/binfmt_misc ]; then"
post " builtin echo Calling modprobe"
post " /sbin/modprobe binfmt_misc"
post "fi"
post ""
post "did_mount_it=''"
post ""
post "if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then"
post " builtin echo mounting binfmt_misc"
post " mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc"
post " did_mount_it=1"
post "fi"
post ""
post "if [ -e /proc/sys/fs/binfmt_misc/arm ]; then"
post " builtin echo Registering accelerated handler"
post " builtin echo -1 > /proc/sys/fs/binfmt_misc/arm"
post " builtin echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu/qemu-arm-binfmt:P' > /proc/sys/fs/binfmt_misc/register"
post "fi"
post ""
post "if [ $did_mount_it ]; then "
post " builtin echo "Unmounting again.";"
post " umount /proc/sys/fs/binfmt_misc"
post "fi"
post ""
post "builtin echo All done"
post ""
post "# Fix up sysroot paths"
post "rm -rf /usr/armv7l-tizen-linux-gnueabi/lib"
post "ln -s /lib /usr/armv7l-tizen-linux-gnueabi/usr/lib"
post "builtin echo 0 >/proc/sys/vm/mmap_min_addr"
+/
|