Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | # |
| 3 | # Update Linux kernel headers QEMU requires from a specified kernel tree. |
| 4 | # |
| 5 | # Copyright (C) 2011 Siemens AG |
| 6 | # |
| 7 | # Authors: |
| 8 | # Jan Kiszka <jan.kiszka@siemens.com> |
| 9 | # |
| 10 | # This work is licensed under the terms of the GNU GPL version 2. |
| 11 | # See the COPYING file in the top-level directory. |
Peter Maydell | 0166f5c | 2021-12-09 19:45:32 +0000 | [diff] [blame] | 12 | # |
| 13 | # The script will copy the headers into two target folders: |
| 14 | # |
| 15 | # - linux-headers/ for files that are required for compiling for a |
| 16 | # Linux host. Generally we have these so we can use kernel structs |
| 17 | # and defines that are more recent than the headers that might be |
| 18 | # installed on the host system. Usually this script can do simple |
| 19 | # file copies for these headers. |
| 20 | # |
| 21 | # - include/standard-headers/ for files that are used for guest |
| 22 | # device emulation and are required on all hosts. For instance, we |
| 23 | # get our definitions of the virtio structures from the Linux |
| 24 | # kernel headers, but we need those definitions regardless of which |
| 25 | # host OS we are building for. This script has to be careful to |
| 26 | # sanitize the headers to remove any use of Linux-specifics such as |
| 27 | # types like "__u64". This work is done in the cp_portable function. |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 28 | |
Stefan Weil | bbd9080 | 2016-05-16 15:23:33 +0200 | [diff] [blame] | 29 | tmpdir=$(mktemp -d) |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 30 | hdrdir="$tmpdir/headers" |
| 31 | blddir="$tmpdir/build" |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 32 | linux="$1" |
| 33 | output="$2" |
| 34 | |
| 35 | if [ -z "$linux" ] || ! [ -d "$linux" ]; then |
| 36 | cat << EOF |
| 37 | usage: update-kernel-headers.sh LINUX_PATH [OUTPUT_PATH] |
| 38 | |
| 39 | LINUX_PATH Linux kernel directory to obtain the headers from |
| 40 | OUTPUT_PATH output directory, usually the qemu source tree (default: $PWD) |
| 41 | EOF |
| 42 | exit 1 |
| 43 | fi |
| 44 | |
| 45 | if [ -z "$output" ]; then |
| 46 | output="$PWD" |
| 47 | fi |
| 48 | |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 49 | cp_portable() { |
| 50 | f=$1 |
Michael S. Tsirkin | 1ff0b55 | 2015-02-16 22:35:25 +0100 | [diff] [blame] | 51 | to=$2 |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 52 | if |
| 53 | grep '#include' "$f" | grep -v -e 'linux/virtio' \ |
| 54 | -e 'linux/types' \ |
Vivek Kasireddy | 4d01086 | 2021-05-26 16:14:17 -0700 | [diff] [blame] | 55 | -e 'linux/ioctl' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 56 | -e 'stdint' \ |
| 57 | -e 'linux/if_ether' \ |
Paolo Bonzini | fff02bc | 2015-12-15 15:00:27 +0100 | [diff] [blame] | 58 | -e 'input-event-codes' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 59 | -e 'sys/' \ |
Gerd Hoffmann | 8e8ee85 | 2018-03-13 11:17:28 -0600 | [diff] [blame] | 60 | -e 'drm.h' \ |
Jason Baron | d3b7b37 | 2018-03-07 22:25:39 -0500 | [diff] [blame] | 61 | -e 'limits' \ |
Eric Farman | ab5ec23 | 2021-01-04 21:20:55 +0100 | [diff] [blame] | 62 | -e 'linux/const' \ |
Jason Baron | d3b7b37 | 2018-03-07 22:25:39 -0500 | [diff] [blame] | 63 | -e 'linux/kernel' \ |
| 64 | -e 'linux/sysinfo' \ |
Michael Roth | 66210a1 | 2024-02-18 23:35:02 -0600 | [diff] [blame] | 65 | -e 'asm/setup_data.h' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 66 | > /dev/null |
| 67 | then |
| 68 | echo "Unexpected #include in input file $f". |
| 69 | exit 2 |
Michael S. Tsirkin | 1ff0b55 | 2015-02-16 22:35:25 +0100 | [diff] [blame] | 70 | fi |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 71 | |
| 72 | header=$(basename "$f"); |
Peter Maydell | c5022c3 | 2018-05-25 14:27:51 +0100 | [diff] [blame] | 73 | sed -e 's/__aligned_u64/__u64 __attribute__((aligned(8)))/g' \ |
| 74 | -e 's/__u\([0-9][0-9]*\)/uint\1_t/g' \ |
Marcel Apfelbaum | e1c5f1f | 2018-02-14 19:35:27 +0200 | [diff] [blame] | 75 | -e 's/u\([0-9][0-9]*\)/uint\1_t/g' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 76 | -e 's/__s\([0-9][0-9]*\)/int\1_t/g' \ |
| 77 | -e 's/__le\([0-9][0-9]*\)/uint\1_t/g' \ |
| 78 | -e 's/__be\([0-9][0-9]*\)/uint\1_t/g' \ |
Paolo Bonzini | fff02bc | 2015-12-15 15:00:27 +0100 | [diff] [blame] | 79 | -e 's/"\(input-event-codes\.h\)"/"standard-headers\/linux\/\1"/' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 80 | -e 's/<linux\/\([^>]*\)>/"standard-headers\/linux\/\1"/' \ |
Michael Roth | 66210a1 | 2024-02-18 23:35:02 -0600 | [diff] [blame] | 81 | -e 's/<asm\/\([^>]*\)>/"standard-headers\/asm-'$arch'\/\1"/' \ |
Michael S. Tsirkin | ed219c4 | 2017-01-13 18:18:35 +0200 | [diff] [blame] | 82 | -e 's/__bitwise//' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 83 | -e 's/__attribute__((packed))/QEMU_PACKED/' \ |
| 84 | -e 's/__inline__/inline/' \ |
Paolo Bonzini | 9f2d175 | 2018-03-13 09:38:18 +0100 | [diff] [blame] | 85 | -e 's/__BITS_PER_LONG/HOST_LONG_BITS/' \ |
Gerd Hoffmann | 8e8ee85 | 2018-03-13 11:17:28 -0600 | [diff] [blame] | 86 | -e '/\"drm.h\"/d' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 87 | -e '/sys\/ioctl.h/d' \ |
Vivek Kasireddy | 4d01086 | 2021-05-26 16:14:17 -0700 | [diff] [blame] | 88 | -e '/linux\/ioctl.h/d' \ |
Markus Armbruster | ac98fa8 | 2015-10-08 18:11:39 +0200 | [diff] [blame] | 89 | -e 's/SW_MAX/SW_MAX_/' \ |
Marcel Apfelbaum | e1c5f1f | 2018-02-14 19:35:27 +0200 | [diff] [blame] | 90 | -e 's/atomic_t/int/' \ |
Jason Baron | d3b7b37 | 2018-03-07 22:25:39 -0500 | [diff] [blame] | 91 | -e 's/__kernel_long_t/long/' \ |
| 92 | -e 's/__kernel_ulong_t/unsigned long/' \ |
| 93 | -e 's/struct ethhdr/struct eth_header/' \ |
| 94 | -e '/\#define _LINUX_ETHTOOL_H/a \\n\#include "net/eth.h"' \ |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 95 | "$f" > "$to/$header"; |
Michael S. Tsirkin | 1ff0b55 | 2015-02-16 22:35:25 +0100 | [diff] [blame] | 96 | } |
| 97 | |
Peter Maydell | 2879636 | 2012-07-18 11:11:09 +0100 | [diff] [blame] | 98 | # This will pick up non-directories too (eg "Kconfig") but we will |
| 99 | # ignore them in the next loop. |
| 100 | ARCHLIST=$(cd "$linux/arch" && echo *) |
| 101 | |
| 102 | for arch in $ARCHLIST; do |
| 103 | # Discard anything which isn't a KVM-supporting architecture |
Peter Maydell | b55f546 | 2012-10-22 12:54:39 +0100 | [diff] [blame] | 104 | if ! [ -e "$linux/arch/$arch/include/asm/kvm.h" ] && |
| 105 | ! [ -e "$linux/arch/$arch/include/uapi/asm/kvm.h" ] ; then |
Peter Maydell | 2879636 | 2012-07-18 11:11:09 +0100 | [diff] [blame] | 106 | continue |
| 107 | fi |
| 108 | |
Paolo Bonzini | f717e62 | 2017-02-21 13:29:19 +0100 | [diff] [blame] | 109 | if [ "$arch" = x86 ]; then |
| 110 | arch_var=SRCARCH |
| 111 | else |
| 112 | arch_var=ARCH |
| 113 | fi |
| 114 | |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 115 | make -C "$linux" O="$blddir" INSTALL_HDR_PATH="$hdrdir" $arch_var=$arch headers_install |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 116 | |
| 117 | rm -rf "$output/linux-headers/asm-$arch" |
| 118 | mkdir -p "$output/linux-headers/asm-$arch" |
Zhang Yi | 0289881 | 2019-02-08 18:10:49 +0800 | [diff] [blame] | 119 | for header in kvm.h unistd.h bitsperlong.h mman.h; do |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 120 | cp "$hdrdir/include/asm/$header" "$output/linux-headers/asm-$arch" |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 121 | done |
Michael S. Tsirkin | 9882d3e | 2018-03-20 23:01:04 +0200 | [diff] [blame] | 122 | |
| 123 | if [ $arch = mips ]; then |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 124 | cp "$hdrdir/include/asm/sgidefs.h" "$output/linux-headers/asm-mips/" |
| 125 | cp "$hdrdir/include/asm/unistd_o32.h" "$output/linux-headers/asm-mips/" |
| 126 | cp "$hdrdir/include/asm/unistd_n32.h" "$output/linux-headers/asm-mips/" |
| 127 | cp "$hdrdir/include/asm/unistd_n64.h" "$output/linux-headers/asm-mips/" |
Paolo Bonzini | a0a6ef9 | 2019-01-04 09:27:30 +0100 | [diff] [blame] | 128 | fi |
| 129 | if [ $arch = powerpc ]; then |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 130 | cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-powerpc/" |
| 131 | cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-powerpc/" |
Michael S. Tsirkin | 9882d3e | 2018-03-20 23:01:04 +0200 | [diff] [blame] | 132 | fi |
| 133 | |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 134 | rm -rf "$output/include/standard-headers/asm-$arch" |
| 135 | mkdir -p "$output/include/standard-headers/asm-$arch" |
| 136 | if [ $arch = s390 ]; then |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 137 | cp_portable "$hdrdir/include/asm/virtio-ccw.h" "$output/include/standard-headers/asm-s390/" |
| 138 | cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-s390/" |
| 139 | cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-s390/" |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 140 | fi |
Paolo Bonzini | f717e62 | 2017-02-21 13:29:19 +0100 | [diff] [blame] | 141 | if [ $arch = arm ]; then |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 142 | cp "$hdrdir/include/asm/unistd-eabi.h" "$output/linux-headers/asm-arm/" |
| 143 | cp "$hdrdir/include/asm/unistd-oabi.h" "$output/linux-headers/asm-arm/" |
| 144 | cp "$hdrdir/include/asm/unistd-common.h" "$output/linux-headers/asm-arm/" |
Paolo Bonzini | f717e62 | 2017-02-21 13:29:19 +0100 | [diff] [blame] | 145 | fi |
Cornelia Huck | b1b9e0d | 2019-05-21 16:56:30 +0200 | [diff] [blame] | 146 | if [ $arch = arm64 ]; then |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 147 | cp "$hdrdir/include/asm/sve_context.h" "$output/linux-headers/asm-arm64/" |
Cornelia Huck | b1b9e0d | 2019-05-21 16:56:30 +0200 | [diff] [blame] | 148 | fi |
Paolo Bonzini | 73aa529 | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 149 | if [ $arch = x86 ]; then |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 150 | cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/" |
| 151 | cp "$hdrdir/include/asm/unistd_x32.h" "$output/linux-headers/asm-x86/" |
| 152 | cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-x86/" |
| 153 | cp_portable "$hdrdir/include/asm/kvm_para.h" "$output/include/standard-headers/asm-$arch" |
Li Zhijian | 06e0259 | 2019-01-17 20:49:03 +0800 | [diff] [blame] | 154 | # Remove everything except the macros from bootparam.h avoiding the |
| 155 | # unnecessary import of several video/ist/etc headers |
| 156 | sed -e '/__ASSEMBLY__/,/__ASSEMBLY__/d' \ |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 157 | "$hdrdir/include/asm/bootparam.h" > "$hdrdir/bootparam.h" |
| 158 | cp_portable "$hdrdir/bootparam.h" \ |
Li Zhijian | 06e0259 | 2019-01-17 20:49:03 +0800 | [diff] [blame] | 159 | "$output/include/standard-headers/asm-$arch" |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 160 | cp_portable "$hdrdir/include/asm/setup_data.h" \ |
Michael Roth | 66210a1 | 2024-02-18 23:35:02 -0600 | [diff] [blame] | 161 | "$output/standard-headers/asm-x86" |
Paolo Bonzini | 73aa529 | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 162 | fi |
Daniel Henrique Barboza | 1583ca8 | 2023-12-18 17:43:19 -0300 | [diff] [blame] | 163 | if [ $arch = riscv ]; then |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 164 | cp "$hdrdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/" |
Daniel Henrique Barboza | 1583ca8 | 2023-12-18 17:43:19 -0300 | [diff] [blame] | 165 | fi |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 166 | done |
Michael Roth | 66210a1 | 2024-02-18 23:35:02 -0600 | [diff] [blame] | 167 | arch= |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 168 | |
| 169 | rm -rf "$output/linux-headers/linux" |
| 170 | mkdir -p "$output/linux-headers/linux" |
David 'Digit' Turner | 9fc7dd2 | 2023-04-05 19:21:08 +0200 | [diff] [blame] | 171 | for header in const.h stddef.h kvm.h vfio.h vfio_ccw.h vfio_zdev.h vhost.h \ |
Eric Auger | 8cba58b | 2023-10-09 11:09:03 +0200 | [diff] [blame] | 172 | psci.h psp-sev.h userfaultfd.h memfd.h mman.h nvme_ioctl.h \ |
Michael Roth | b40b8eb | 2024-02-21 10:51:38 -0600 | [diff] [blame] | 173 | vduse.h iommufd.h bits.h; do |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 174 | cp "$hdrdir/include/linux/$header" "$output/linux-headers/linux" |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 175 | done |
Michael S. Tsirkin | ec7b108 | 2018-04-17 21:42:21 +0300 | [diff] [blame] | 176 | |
Michael S. Tsirkin | 9882d3e | 2018-03-20 23:01:04 +0200 | [diff] [blame] | 177 | rm -rf "$output/linux-headers/asm-generic" |
| 178 | mkdir -p "$output/linux-headers/asm-generic" |
Zhang Yi | 0289881 | 2019-02-08 18:10:49 +0800 | [diff] [blame] | 179 | for header in unistd.h bitsperlong.h mman-common.h mman.h hugetlb_encode.h; do |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 180 | cp "$hdrdir/include/asm-generic/$header" "$output/linux-headers/asm-generic" |
Michael S. Tsirkin | 9882d3e | 2018-03-20 23:01:04 +0200 | [diff] [blame] | 181 | done |
| 182 | |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 183 | if [ -L "$linux/source" ]; then |
| 184 | cp "$linux/source/COPYING" "$output/linux-headers" |
| 185 | else |
| 186 | cp "$linux/COPYING" "$output/linux-headers" |
| 187 | fi |
| 188 | |
Peter Maydell | f5bba4c | 2018-05-25 14:27:52 +0100 | [diff] [blame] | 189 | # Recent kernel sources split the copyright/license info into multiple |
| 190 | # files, which we need to copy. This set of licenses is the set that |
| 191 | # are referred to by SPDX lines in the headers we currently copy. |
| 192 | # We don't copy the Documentation/process/license-rules.rst which |
| 193 | # is also referred to by COPYING, since it's explanatory rather than license. |
| 194 | if [ -d "$linux/LICENSES" ]; then |
| 195 | mkdir -p "$output/linux-headers/LICENSES/preferred" \ |
| 196 | "$output/linux-headers/LICENSES/exceptions" |
| 197 | for l in preferred/GPL-2.0 preferred/BSD-2-Clause preferred/BSD-3-Clause \ |
| 198 | exceptions/Linux-syscall-note; do |
| 199 | cp "$linux/LICENSES/$l" "$output/linux-headers/LICENSES/$l" |
| 200 | done |
| 201 | fi |
| 202 | |
Michael S. Tsirkin | 05e492b | 2015-02-16 22:36:32 +0100 | [diff] [blame] | 203 | cat <<EOF >$output/linux-headers/linux/virtio_config.h |
| 204 | #include "standard-headers/linux/virtio_config.h" |
| 205 | EOF |
| 206 | cat <<EOF >$output/linux-headers/linux/virtio_ring.h |
| 207 | #include "standard-headers/linux/virtio_ring.h" |
| 208 | EOF |
Paolo Bonzini | a0a6ef9 | 2019-01-04 09:27:30 +0100 | [diff] [blame] | 209 | cat <<EOF >$output/linux-headers/linux/vhost_types.h |
| 210 | #include "standard-headers/linux/vhost_types.h" |
| 211 | EOF |
Michael S. Tsirkin | 1ff0b55 | 2015-02-16 22:35:25 +0100 | [diff] [blame] | 212 | |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 213 | rm -rf "$output/include/standard-headers/linux" |
| 214 | mkdir -p "$output/include/standard-headers/linux" |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 215 | for i in "$hdrdir"/include/linux/*virtio*.h \ |
| 216 | "$hdrdir/include/linux/qemu_fw_cfg.h" \ |
| 217 | "$hdrdir/include/linux/fuse.h" \ |
| 218 | "$hdrdir/include/linux/input.h" \ |
| 219 | "$hdrdir/include/linux/input-event-codes.h" \ |
| 220 | "$hdrdir/include/linux/udmabuf.h" \ |
| 221 | "$hdrdir/include/linux/pci_regs.h" \ |
| 222 | "$hdrdir/include/linux/ethtool.h" \ |
| 223 | "$hdrdir/include/linux/const.h" \ |
| 224 | "$hdrdir/include/linux/kernel.h" \ |
| 225 | "$hdrdir/include/linux/vhost_types.h" \ |
| 226 | "$hdrdir/include/linux/sysinfo.h" \ |
| 227 | "$hdrdir/include/misc/pvpanic.h"; do |
Paolo Bonzini | eddb4de | 2015-09-09 15:25:52 +0200 | [diff] [blame] | 228 | cp_portable "$i" "$output/include/standard-headers/linux" |
| 229 | done |
Gerd Hoffmann | 8e8ee85 | 2018-03-13 11:17:28 -0600 | [diff] [blame] | 230 | mkdir -p "$output/include/standard-headers/drm" |
Alex Bennée | b51ddd9 | 2024-05-14 18:42:44 +0100 | [diff] [blame^] | 231 | cp_portable "$hdrdir/include/drm/drm_fourcc.h" \ |
Gerd Hoffmann | 8e8ee85 | 2018-03-13 11:17:28 -0600 | [diff] [blame] | 232 | "$output/include/standard-headers/drm" |
Michael S. Tsirkin | 1ff0b55 | 2015-02-16 22:35:25 +0100 | [diff] [blame] | 233 | |
| 234 | cat <<EOF >$output/include/standard-headers/linux/types.h |
Peter Maydell | 8bc92a7 | 2016-02-23 14:18:31 +0000 | [diff] [blame] | 235 | /* For QEMU all types are already defined via osdep.h, so this |
| 236 | * header does not need to do anything. |
| 237 | */ |
Michael S. Tsirkin | 1ff0b55 | 2015-02-16 22:35:25 +0100 | [diff] [blame] | 238 | EOF |
| 239 | cat <<EOF >$output/include/standard-headers/linux/if_ether.h |
| 240 | #define ETH_ALEN 6 |
| 241 | EOF |
| 242 | |
Jan Kiszka | 87fdd47 | 2011-06-08 18:22:17 +0200 | [diff] [blame] | 243 | rm -rf "$tmpdir" |