builddeb: use $OBJCOPY variable instead of objcopy
authorFathi Boudra <fathi.boudra@linaro.org>
Sat, 12 Apr 2014 10:13:24 +0000 (13:13 +0300)
committerMichal Marek <mmarek@suse.cz>
Thu, 24 Apr 2014 13:25:09 +0000 (15:25 +0200)
commit6b4a144a92ab81a1f45fb9b12aebaaaee0d08120
tree73865a703ac95e4e04cfff436aa375381a9d9e8a
parent8c38a5328af8080bc69a25b3e4e144b03eeea95e
builddeb: use $OBJCOPY variable instead of objcopy

In cross-build environment, we expect to use the cross-compiler objcopy
instead of the host objcopy.

It fixes following build failures:
objcopy --only-keep-debug lib/modules/3.14/kernel/net/ipv6/xfrm6_mode_tunnel.ko /srv/build/linux/debian/dbgtmp/usr/lib/debug/lib/modules/3.14/kernel/net/ipv6/xfrm6_mode_tunnel.ko
objcopy: Unable to recognise the format of the input file `lib/modules/3.14/kernel/net/ipv6/xfrm6_mode_tunnel.ko'

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Cc: stable <stable@vger.kernel.org> # 3.12+
Fixes: 810e843746b7 ('deb-pkg: split debug symbols in their own package')
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/builddeb