diff options
author | Andrey Konovalov <andrey.konovalov@linaro.org> | 2013-09-26 22:48:23 +0400 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2014-04-15 22:43:56 +0400 |
commit | 1bc2ec6636b12cc3ebc3c897694b8e84c23ca3e7 (patch) | |
tree | 448514afd7f6cf5e941e7196b411b9e7f1945709 | |
parent | ce7abe8a69f8908ba1286deed40db6988c323792 (diff) |
builddeb: fix the cross build failure when CONFIG_DEBUG_INFO=y
Commit 810e843746b7297819b0a76b6c105b9bda01fd9c "deb-pkg: split debug
symbols in their own package" broke cross builds by calling the native
version of objcopy.
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
-rw-r--r-- | scripts/package/builddeb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 58fdb49a7663..15d2d74f18cb 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -155,11 +155,11 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then for module in $(find lib/modules/ -name *.ko); do mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module) # only keep debug symbols in the debug file - objcopy --only-keep-debug $module $dbg_dir/usr/lib/debug/$module + $OBJCOPY --only-keep-debug $module $dbg_dir/usr/lib/debug/$module # strip original module from debug symbols - objcopy --strip-debug $module + $OBJCOPY --strip-debug $module # then add a link to those - objcopy --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module + $OBJCOPY --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module done ) fi |