blob: 3a1b2efa5f51cd7a34cf69a8d396a4f7e9727e00 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#!/bin/sh
2#
Frans Pop49644512009-04-23 01:09:25 +02003# builddeb 1.3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004# Copyright 2003 Wichert Akkerman <wichert@wiggy.net>
5#
6# Simple script to generate a deb package for a Linux kernel. All the
Frans Pop4f661992009-04-23 01:08:31 +02007# complexity of what to do with a kernel after it is installed or removed
Linus Torvalds1da177e2005-04-16 15:20:36 -07008# is left to other scripts and packages: they can install scripts in the
Frans Popfe233cb2009-04-23 01:10:10 +02009# /etc/kernel/{pre,post}{inst,rm}.d/ directories (or an alternative location
10# specified in KDEB_HOOKDIR) that will be called on package install and
11# removal.
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13set -e
14
Masahiro Yamada515f4c62019-03-08 18:56:24 +090015is_enabled() {
Masahiro Yamada6fb7ef52019-03-08 18:56:25 +090016 grep -q "^$1=y" include/config/auto.conf
Masahiro Yamada515f4c62019-03-08 18:56:24 +090017}
18
19if_enabled_echo() {
20 if is_enabled "$1"; then
21 echo -n "$2"
22 elif [ $# -ge 3 ]; then
23 echo -n "$3"
24 fi
25}
26
Frans Pop3e2ab252009-04-23 01:08:44 +020027create_package() {
28 local pname="$1" pdir="$2"
Guillem Jover3e854182020-09-21 00:25:54 +020029 local dpkg_deb_opts
Frans Pop3e2ab252009-04-23 01:08:44 +020030
Riku Voipiobf7b0052015-05-28 12:11:14 +030031 mkdir -m 755 -p "$pdir/DEBIAN"
32 mkdir -p "$pdir/usr/share/doc/$pname"
Frans Pop9461f662009-04-24 19:08:24 +020033 cp debian/copyright "$pdir/usr/share/doc/$pname/"
maximilian attems1ab18482009-06-26 20:04:36 +020034 cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian"
Guillem Jover51ccdbf2020-09-21 00:25:50 +020035 gzip -n -9 "$pdir/usr/share/doc/$pname/changelog.Debian"
FEJES Jozsefb59a1222010-03-05 18:19:36 +010036 sh -c "cd '$pdir'; find . -type f ! -path './DEBIAN/*' -printf '%P\0' \
37 | xargs -r0 md5sum > DEBIAN/md5sums"
Frans Pop9461f662009-04-24 19:08:24 +020038
Frans Pop3e2ab252009-04-23 01:08:44 +020039 # Fix ownership and permissions
Guillem Jover3e854182020-09-21 00:25:54 +020040 if [ "$DEB_RULES_REQUIRES_ROOT" = "no" ]; then
41 dpkg_deb_opts="--root-owner-group"
42 else
43 chown -R root:root "$pdir"
44 fi
Frans Pop3e2ab252009-04-23 01:08:44 +020045 chmod -R go-w "$pdir"
Henning Schildca617dc2016-07-22 14:46:52 +020046 # in case we are in a restrictive umask environment like 0077
47 chmod -R a+rX "$pdir"
Sven Joachimd1889582020-10-26 20:32:16 +010048 # in case we build in a setuid/setgid directory
49 chmod -R ug-s "$pdir"
Frans Pop3e2ab252009-04-23 01:08:44 +020050
yi.liuc1a3ae42023-12-04 14:03:15 +080051 # Create preinstall and post install script to remove dtb
52 if [[ "$1" == *dtb* ]]; then
53 cat >> $pdir/DEBIAN/preinst <<-EOF
54 #!/bin/bash
55 EOF
56
57 cat >> $pdir/DEBIAN/postinst <<-EOF
58 #!/bin/bash
59 cd /boot
60 ln -sfT dtb-$version dtb 2> /dev/null || mv dtb-$version dtb
61 cd - > /dev/null
62 echo dtb-$version > /boot/.dtb.tmp
63 exit 0
64 EOF
65 chmod 775 $pdir/DEBIAN/preinst ; chmod 775 $pdir/DEBIAN/postinst
66 fi
67
68 # Create postinst prerm scripts for headers
69 if [[ "$1" == *headers* ]]; then
70 cat >> $pdir/DEBIAN/postinst <<-EOF
71 #!/bin/bash
72 cd /usr/src/linux-headers-$version
73 echo "Compiling headers - please wait ..."
74 find -type f -exec touch {} +
75
76 pwd
77 gcc -v
78
79 echo "Compiling headers - make -j8 -s scripts > /dev/null 2>&1..."
80 #make -j\$(grep -c 'processor' /proc/cpuinfo) -s scripts > /dev/null 2>&1 || exit 1
81 # Guoping changed to J8 avoid using too many jobs for building in build server
82 #make -j8-s scripts > /dev/null 2>&1 || exit 1
83 make -j8 -s scripts 2>&1 > log.txt || exit 1
84
85 echo "Compiling headers - make -j8 -s M=scripts/mod/ > /dev/null 2>&1..."
86 #make -j\$(grep -c 'processor' /proc/cpuinfo) -s M=scripts/mod/ > /dev/null 2>&1 || exit 1
87 # Guoping changed to J8 avoid using too many jobs for building in build server
88 #make -j8 -s M=scripts/mod/ > /dev/null 2>&1 || exit 1
89 make -j8 -s M=scripts/mod/ 2>&1 > log.txt || exit 1
90
91 echo "Compiling headers - Done ..."
92
93 #exit 0
94 EOF
95
96 cat >> $pdir/DEBIAN/prerm <<-EOF
97 cd /usr/src/linux-headers-$version
98 rm -rf scripts .config.old
99 EOF
100
101 chmod 775 $pdir/DEBIAN/postinst ; chmod 775 $pdir/DEBIAN/prerm
102 fi
103
Riku Voipiodca0c022015-04-16 16:42:46 +0300104 # Create the package
yi.liuc1a3ae42023-12-04 14:03:15 +0800105 echo "Building package: $pdir $pname.deb"
Riku Voipiob41d9202018-04-05 14:22:29 +0300106 dpkg-gencontrol -p$pname -P"$pdir"
yi.liuc1a3ae42023-12-04 14:03:15 +0800107
108 ## For HOST jammy, dpkg-deb default use zstd for compress,
109 # it will cause failed log "uses unknown compression for member 'control.tar.zst', giving up"
110 # dpkg -i need xz compress, but HOST jammy default use zst, so de-compress the debs and re-compress to xz
111 # HOST jammy: control.tar.zst data.tar.zst debian-binary
112 # HOST focal : control.tar.xz data.tar.xz debian-binary
Guillem Jover3e854182020-09-21 00:25:54 +0200113 dpkg-deb $dpkg_deb_opts ${KDEB_COMPRESS:+-Z$KDEB_COMPRESS} --build "$pdir" ..
Riku Voipiodca0c022015-04-16 16:42:46 +0300114}
115
Masahiro Yamada3126c172020-01-25 13:12:34 +0900116deploy_kernel_headers () {
117 pdir=$1
118
119 rm -rf $pdir
120
121 (
122 cd $srctree
123 find . arch/$SRCARCH -maxdepth 1 -name Makefile\*
124 find include scripts -type f -o -type l
yi.liuc1a3ae42023-12-04 14:03:15 +0800125 find security/*/include -type f
Masahiro Yamada596b0472020-09-08 13:27:08 +0900126 find arch/$SRCARCH -name Kbuild.platforms -o -name Platform
Masahiro Yamada3126c172020-01-25 13:12:34 +0900127 find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f
128 ) > debian/hdrsrcfiles
129
130 {
131 if is_enabled CONFIG_STACK_VALIDATION; then
132 echo tools/objtool/objtool
133 fi
134
135 find arch/$SRCARCH/include Module.symvers include scripts -type f
136
137 if is_enabled CONFIG_GCC_PLUGINS; then
138 find scripts/gcc-plugins -name \*.so
139 fi
140 } > debian/hdrobjfiles
141
142 destdir=$pdir/usr/src/linux-headers-$version
143 mkdir -p $destdir
yi.liuc1a3ae42023-12-04 14:03:15 +0800144 (cd $destdir; patch -p1 < /tmp/headers-debian-byteshift.patch)
Masahiro Yamada3126c172020-01-25 13:12:34 +0900145 tar -c -f - -C $srctree -T debian/hdrsrcfiles | tar -xf - -C $destdir
146 tar -c -f - -T debian/hdrobjfiles | tar -xf - -C $destdir
147 rm -f debian/hdrsrcfiles debian/hdrobjfiles
148
yi.liuc1a3ae42023-12-04 14:03:15 +0800149 (cd $destdir; export sub_make_done=0; make M=scripts clean;)
150
Masahiro Yamada3126c172020-01-25 13:12:34 +0900151 # copy .config manually to be where it's expected to be
152 cp $KCONFIG_CONFIG $destdir/.config
153
154 mkdir -p $pdir/lib/modules/$version/
155 ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build
156}
157
Masahiro Yamada451dff32020-01-25 13:12:35 +0900158deploy_libc_headers () {
159 pdir=$1
160
161 rm -rf $pdir
162
163 $MAKE -f $srctree/Makefile headers
164 $MAKE -f $srctree/Makefile headers_install INSTALL_HDR_PATH=$pdir/usr
165
166 # move asm headers to /usr/include/<libc-machine>/asm to match the structure
167 # used by Debian-based distros (to support multi-arch)
168 host_arch=$(dpkg-architecture -a$(cat debian/arch) -qDEB_HOST_MULTIARCH)
169 mkdir $pdir/usr/include/$host_arch
170 mv $pdir/usr/include/asm $pdir/usr/include/$host_arch/
171}
172
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173version=$KERNELRELEASE
Masahiro Yamadaf9a47112020-01-25 13:12:31 +0900174tmpdir=debian/linux-image
Masahiro Yamadaf9a47112020-01-25 13:12:31 +0900175dbg_dir=debian/linux-image-dbg
yi.liuc1a3ae42023-12-04 14:03:15 +0800176dtb_dir=debian/linux-dtb
177packagename=linux-image"$LOCAL_VERSION"
178dtb_packagename=linux-dtb"$LOCAL_VERSION"
Anisse Astier810e8432013-07-03 16:02:04 +0200179dbg_packagename=$packagename-dbg
Sam Ravnborg687c3da2005-07-14 20:24:00 +0000180
yi.liuc1a3ae42023-12-04 14:03:15 +0800181
182echo "Building packagename: $packagename.deb"
183echo "Building dtb_packagename: $dtb_packagename.deb"
184
Frans Pop4f661992009-04-23 01:08:31 +0200185if [ "$ARCH" = "um" ] ; then
Sam Ravnborg687c3da2005-07-14 20:24:00 +0000186 packagename=user-mode-linux-$version
187fi
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188
Anisse Astier9de70172013-07-03 16:02:05 +0200189# Not all arches have the same installed path in debian
190# XXX: have each arch Makefile export a variable of the canonical image install
191# path instead
192case $ARCH in
yi.liuc1a3ae42023-12-04 14:03:15 +0800193aarch64|arm64)
194 image_name=Image
195 installed_image_path="boot/vmlinuz-$version"
196
197 ;;
198arm*)
199 image_name=zImage
200 installed_image_path="boot/vmlinuz-$version"
201 ;;
Anisse Astier9de70172013-07-03 16:02:05 +0200202um)
203 installed_image_path="usr/bin/linux-$version"
204 ;;
205parisc|mips|powerpc)
206 installed_image_path="boot/vmlinux-$version"
207 ;;
208*)
209 installed_image_path="boot/vmlinuz-$version"
210esac
211
Masahiro Yamada515f4c62019-03-08 18:56:24 +0900212BUILD_DEBUG=$(if_enabled_echo CONFIG_DEBUG_INFO Yes)
Anisse Astier810e8432013-07-03 16:02:04 +0200213
Linus Torvalds1da177e2005-04-16 15:20:36 -0700214# Setup the directory structure
yi.liuc1a3ae42023-12-04 14:03:15 +0800215rm -rf "$tmpdir" "$dbg_dir" "$dtb_dir" debian/files
216mkdir -m 755 -p "$dtb_dir/DEBIAN"
217mkdir -p "$dtb_dir/boot/dtb-$version" "$dtb_dir/usr/share/doc/$dtb_packagename"
maximilian attemse86c2412010-10-29 15:55:50 +0200218mkdir -m 755 -p "$tmpdir/DEBIAN"
Riku Voipiobf7b0052015-05-28 12:11:14 +0300219mkdir -p "$tmpdir/lib" "$tmpdir/boot"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700220
Masahiro Yamadaaae6a6712020-01-25 13:12:33 +0900221# Install the kernel
Frans Pop4f661992009-04-23 01:08:31 +0200222if [ "$ARCH" = "um" ] ; then
Riku Voipiobf7b0052015-05-28 12:11:14 +0300223 mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin" "$tmpdir/usr/share/doc/$packagename"
Sam Ravnborg687c3da2005-07-14 20:24:00 +0000224 cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map"
Anisse Astierd2091762013-07-03 16:02:03 +0200225 cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config"
Sam Ravnborg687c3da2005-07-14 20:24:00 +0000226 gzip "$tmpdir/usr/share/doc/$packagename/config"
Masahiro Yamada38385f82014-04-28 16:26:18 +0900227else
Sam Ravnborg687c3da2005-07-14 20:24:00 +0000228 cp System.map "$tmpdir/boot/System.map-$version"
Anisse Astierd2091762013-07-03 16:02:03 +0200229 cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
Anisse Astier9de70172013-07-03 16:02:05 +0200230fi
yi.liuc1a3ae42023-12-04 14:03:15 +0800231cp arch/$ARCH/boot/Image "$tmpdir/$installed_image_path"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700232
Masahiro Yamada515f4c62019-03-08 18:56:24 +0900233if is_enabled CONFIG_OF_EARLY_FLATTREE; then
Arnaud Patard (Rtp)ca2a9d22015-02-03 13:16:33 +0100234 # Only some architectures with OF support have this target
Rob Herringd5615e42018-11-07 08:36:46 -0600235 if [ -d "${srctree}/arch/$SRCARCH/boot/dts" ]; then
yi.liuc1a3ae42023-12-04 14:03:15 +0800236 if [ -n "$DTBS" ]; then
237 $MAKE -f $srctree/Makefile INSTALL_DTBS_PATH="$tmpdir/usr/lib/$packagename" dtbs_install dtb-y="$DTBS"
238 else
239 $MAKE -f $srctree/Makefile INSTALL_DTBS_PATH="$tmpdir/usr/lib/$packagename" dtbs_install
240 fi
Arnaud Patard (Rtp)ca2a9d22015-02-03 13:16:33 +0100241 fi
242fi
243
Masahiro Yamada515f4c62019-03-08 18:56:24 +0900244if is_enabled CONFIG_MODULES; then
Masahiro Yamada175209c2019-02-14 12:05:14 +0900245 INSTALL_MOD_PATH="$tmpdir" $MAKE -f $srctree/Makefile modules_install
Joerg Roedela47b6c62012-02-15 17:38:26 +0100246 rm -f "$tmpdir/lib/modules/$version/build"
247 rm -f "$tmpdir/lib/modules/$version/source"
Frans Pop4f661992009-04-23 01:08:31 +0200248 if [ "$ARCH" = "um" ] ; then
Sam Ravnborg687c3da2005-07-14 20:24:00 +0000249 mv "$tmpdir/lib/modules/$version"/* "$tmpdir/usr/lib/uml/modules/$version/"
250 rmdir "$tmpdir/lib/modules/$version"
251 fi
Anisse Astier810e8432013-07-03 16:02:04 +0200252 if [ -n "$BUILD_DEBUG" ] ; then
Michal Marek2d087132014-08-22 15:51:03 +0200253 for module in $(find $tmpdir/lib/modules/ -name *.ko -printf '%P\n'); do
254 module=lib/modules/$module
255 mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module)
256 # only keep debug symbols in the debug file
257 $OBJCOPY --only-keep-debug $tmpdir/$module $dbg_dir/usr/lib/debug/$module
258 # strip original module from debug symbols
259 $OBJCOPY --strip-debug $tmpdir/$module
260 # then add a link to those
261 $OBJCOPY --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $tmpdir/$module
262 done
Andrey Skvortsov64178cb2015-03-16 11:20:54 +0300263
264 # resign stripped modules
Masahiro Yamada515f4c62019-03-08 18:56:24 +0900265 if is_enabled CONFIG_MODULE_SIG_ALL; then
Masahiro Yamada175209c2019-02-14 12:05:14 +0900266 INSTALL_MOD_PATH="$tmpdir" $MAKE -f $srctree/Makefile modules_sign
Andrey Skvortsov64178cb2015-03-16 11:20:54 +0300267 fi
Anisse Astier810e8432013-07-03 16:02:04 +0200268 fi
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269fi
270
yi.liuc1a3ae42023-12-04 14:03:15 +0800271if grep -q '^CONFIG_OF=y' $KCONFIG_CONFIG ; then
272 if [ -n "$DTBS" ]; then
273 INSTALL_DTBS_PATH="$dtb_dir/boot/dtb-$version" $MAKE KBUILD_SRC= dtbs_install dtb-y="$DTBS"
274 else
275 INSTALL_DTBS_PATH="$dtb_dir/boot/dtb-$version" $MAKE KBUILD_SRC= dtbs_install
276 fi
277fi
278
Linus Torvalds1da177e2005-04-16 15:20:36 -0700279# Install the maintainer scripts
Frans Popfe233cb2009-04-23 01:10:10 +0200280# Note: hook scripts under /etc/kernel are also executed by official Debian
Ben Hutchings1c8ddae2013-11-15 03:03:25 +0000281# kernel packages, as well as kernel packages built using make-kpkg.
282# make-kpkg sets $INITRD to indicate whether an initramfs is wanted, and
283# so do we; recent versions of dracut and initramfs-tools will obey this.
Frans Popfe233cb2009-04-23 01:10:10 +0200284debhookdir=${KDEB_HOOKDIR:-/etc/kernel}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700285for script in postinst postrm preinst prerm ; do
Frans Popfe233cb2009-04-23 01:10:10 +0200286 mkdir -p "$tmpdir$debhookdir/$script.d"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700287 cat <<EOF > "$tmpdir/DEBIAN/$script"
yi.liuc1a3ae42023-12-04 14:03:15 +0800288#!/bin/bash
Linus Torvalds1da177e2005-04-16 15:20:36 -0700289
290set -e
291
Frans Pop49644512009-04-23 01:09:25 +0200292# Pass maintainer script parameters to hook scripts
maximilian attems241ad112009-07-05 20:17:34 +0200293export DEB_MAINT_PARAMS="\$*"
Frans Pop49644512009-04-23 01:09:25 +0200294
Ben Hutchings1c8ddae2013-11-15 03:03:25 +0000295# Tell initramfs builder whether it's wanted
Masahiro Yamada515f4c62019-03-08 18:56:24 +0900296export INITRD=$(if_enabled_echo CONFIG_BLK_DEV_INITRD Yes No)
Ben Hutchings1c8ddae2013-11-15 03:03:25 +0000297
Anisse Astierc95182b2013-07-03 16:02:06 +0200298test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299exit 0
300EOF
301 chmod 755 "$tmpdir/DEBIAN/$script"
302done
303
yi.liuc1a3ae42023-12-04 14:03:15 +0800304
305##
306## Create sym link to kernel image
307##
308sed -e "s/set -e//g" -i $tmpdir/DEBIAN/postinst
309sed -e "s/exit 0//g" -i $tmpdir/DEBIAN/postinst
310cat >> $tmpdir/DEBIAN/postinst <<EOT
311if [ "\$(grep nand /proc/partitions)" != "" ] && [ "\$(grep mmc /proc/partitions)" = "" ]; then
312 mkimage -A arm -O linux -T kernel -C none -a "0x40008000" -e "0x40008000" -n "Linux kernel" -d /$installed_image_path /boot/uImage > /dev/null 2>&1
313 cp /boot/uImage /tmp/uImage
314 sync
315 mountpoint -q /boot || mount /boot
316 cp /tmp/uImage /boot/uImage
317 rm -f /$installed_image_path
318else
319 ln -sf $(basename $installed_image_path) /boot/Image > /dev/null 2>&1 || mv /$installed_image_path /boot/Image
320fi
321exit 0
322EOT
323
324##
325## FAT install workaround
326##
327sed -e "s/set -e//g" -i $tmpdir/DEBIAN/preinst
328sed -e "s/exit 0//g" -i $tmpdir/DEBIAN/preinst
329cat >> $tmpdir/DEBIAN/preinst <<EOT
330# exit if we are running chroot
331if [ "\$(stat -c %d:%i /)" != "\$(stat -c %d:%i /proc/1/root/.)" ]; then exit 0; fi
332
333check_and_unmount (){
334 boot_device=\$(mountpoint -d /boot)
335
336 for file in /dev/* ; do
337 CURRENT_DEVICE=\$(printf "%d:%d" \$(stat --printf="0x%t 0x%T" \$file))
338 if [[ "\$CURRENT_DEVICE" = "\$boot_device" ]]; then
339 boot_partition=\$file
340 break
341 fi
342 done
343
344 bootfstype=\$(blkid -s TYPE -o value \$boot_partition)
345 if [ "\$bootfstype" = "vfat" ]; then
346 rm -f /boot/System.map* /boot/config* /boot/vmlinuz* /boot/$image_name /boot/uImage
347 fi
348}
349mountpoint -q /boot && check_and_unmount
350EOT
351echo "exit 0" >> $tmpdir/DEBIAN/preinst
352
Joerg Roedeld7d357b2012-02-15 17:38:27 +0100353if [ "$ARCH" != "um" ]; then
Masahiro Yamadabac977c2020-10-14 03:38:19 +0900354 if is_enabled CONFIG_MODULES; then
355 deploy_kernel_headers debian/linux-headers
356 create_package linux-headers-$version debian/linux-headers
357 fi
Masahiro Yamada3126c172020-01-25 13:12:34 +0900358
Masahiro Yamada451dff32020-01-25 13:12:35 +0900359 deploy_libc_headers debian/linux-libc-dev
360 create_package linux-libc-dev debian/linux-libc-dev
yi.liuc1a3ae42023-12-04 14:03:15 +0800361
362 create_package "$dtb_packagename" "$dtb_dir" "dtb"
Joerg Roedeld7d357b2012-02-15 17:38:27 +0100363fi
364
Frans Pop3e2ab252009-04-23 01:08:44 +0200365create_package "$packagename" "$tmpdir"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700366
Anisse Astier810e8432013-07-03 16:02:04 +0200367if [ -n "$BUILD_DEBUG" ] ; then
368 # Build debug package
369 # Different tools want the image in different locations
370 # perf
371 mkdir -p $dbg_dir/usr/lib/debug/lib/modules/$version/
372 cp vmlinux $dbg_dir/usr/lib/debug/lib/modules/$version/
373 # systemtap
374 mkdir -p $dbg_dir/usr/lib/debug/boot/
375 ln -s ../lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/boot/vmlinux-$version
376 # kdump-tools
377 ln -s lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/vmlinux-$version
Anisse Astier810e8432013-07-03 16:02:04 +0200378 create_package "$dbg_packagename" "$dbg_dir"
379fi
380
Linus Torvalds1da177e2005-04-16 15:20:36 -0700381exit 0