diff options
Diffstat (limited to 'scripts/package/builddeb')
-rw-r--r-- | scripts/package/builddeb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index b151b63f9be3..b5f08f727868 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -35,13 +35,15 @@ create_package() { | |||
35 | sparc*) | 35 | sparc*) |
36 | debarch=sparc ;; | 36 | debarch=sparc ;; |
37 | s390*) | 37 | s390*) |
38 | debarch=s390 ;; | 38 | debarch=s390$(grep -q CONFIG_64BIT=y $KCONFIG_CONFIG && echo x || true) ;; |
39 | ppc*) | 39 | ppc*) |
40 | debarch=powerpc ;; | 40 | debarch=powerpc ;; |
41 | parisc*) | 41 | parisc*) |
42 | debarch=hppa ;; | 42 | debarch=hppa ;; |
43 | mips*) | 43 | mips*) |
44 | debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;; | 44 | debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;; |
45 | arm64) | ||
46 | debarch=arm64 ;; | ||
45 | arm*) | 47 | arm*) |
46 | debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;; | 48 | debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;; |
47 | *) | 49 | *) |
@@ -155,11 +157,11 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then | |||
155 | for module in $(find lib/modules/ -name *.ko); do | 157 | for module in $(find lib/modules/ -name *.ko); do |
156 | mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module) | 158 | mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module) |
157 | # only keep debug symbols in the debug file | 159 | # only keep debug symbols in the debug file |
158 | objcopy --only-keep-debug $module $dbg_dir/usr/lib/debug/$module | 160 | $OBJCOPY --only-keep-debug $module $dbg_dir/usr/lib/debug/$module |
159 | # strip original module from debug symbols | 161 | # strip original module from debug symbols |
160 | objcopy --strip-debug $module | 162 | $OBJCOPY --strip-debug $module |
161 | # then add a link to those | 163 | # then add a link to those |
162 | objcopy --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module | 164 | $OBJCOPY --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module |
163 | done | 165 | done |
164 | ) | 166 | ) |
165 | fi | 167 | fi |