Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'kbuild-misc-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull misc Kbuild updates from Masahiro Yamada:

- clean up builddeb script

- use full path for KBUILD_IMAGE to fix rpm-pkg build

- fix objdiff tool to ignore debug info

* tag 'kbuild-misc-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
builddeb: fix typo
builddeb: Update a few outdated and hardcoded strings
deb-pkg: Remove the KBUILD_IMAGE workaround
unicore32: Use full path in KBUILD_IMAGE definition
sh: Use full path in KBUILD_IMAGE definition
arc: Use full path in KBUILD_IMAGE definition
arm: Use full path in KBUILD_IMAGE definition
arm64: Use full path in KBUILD_IMAGE definition
scripts: objdiff: Ignore debug info when comparing

+21 -29
+2 -2
arch/arc/Makefile
··· 123 123 boot := arch/arc/boot 124 124 125 125 #default target for make without any arguments. 126 - KBUILD_IMAGE := bootpImage 126 + KBUILD_IMAGE := $(boot)/bootpImage 127 127 128 - all: $(KBUILD_IMAGE) 128 + all: bootpImage 129 129 bootpImage: vmlinux 130 130 131 131 boot_targets += uImage uImage.bin uImage.gz
+4 -4
arch/arm/Makefile
··· 297 297 libs-y := arch/arm/lib/ $(libs-y) 298 298 299 299 # Default target when executing plain make 300 + boot := arch/arm/boot 300 301 ifeq ($(CONFIG_XIP_KERNEL),y) 301 - KBUILD_IMAGE := xipImage 302 + KBUILD_IMAGE := $(boot)/xipImage 302 303 else 303 - KBUILD_IMAGE := zImage 304 + KBUILD_IMAGE := $(boot)/zImage 304 305 endif 305 306 306 307 # Build the DT binary blobs if we have OF configured ··· 309 308 KBUILD_DTBS := dtbs 310 309 endif 311 310 312 - all: $(KBUILD_IMAGE) $(KBUILD_DTBS) 311 + all: $(notdir $(KBUILD_IMAGE)) $(KBUILD_DTBS) 313 312 314 - boot := arch/arm/boot 315 313 316 314 archheaders: 317 315 $(Q)$(MAKE) $(build)=arch/arm/tools uapi
+3 -3
arch/arm64/Makefile
··· 102 102 core-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a 103 103 104 104 # Default target when executing plain make 105 - KBUILD_IMAGE := Image.gz 105 + boot := arch/arm64/boot 106 + KBUILD_IMAGE := $(boot)/Image.gz 106 107 KBUILD_DTBS := dtbs 107 108 108 - all: $(KBUILD_IMAGE) $(KBUILD_DTBS) 109 + all: Image.gz $(KBUILD_DTBS) 109 110 110 - boot := arch/arm64/boot 111 111 112 112 Image: vmlinux 113 113 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
+3 -4
arch/sh/Makefile
··· 94 94 defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux 95 95 96 96 # Set some sensible Kbuild defaults 97 - KBUILD_IMAGE := $(defaultimage-y) 97 + boot := arch/sh/boot 98 + KBUILD_IMAGE := $(boot)/$(defaultimage-y) 98 99 99 100 # 100 101 # Choosing incompatible machines durings configuration will result in ··· 187 186 drivers-y += arch/sh/drivers/ 188 187 drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ 189 188 190 - boot := arch/sh/boot 191 - 192 189 cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \ 193 190 $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) 194 191 ··· 210 211 romImage 211 212 PHONY += $(BOOT_TARGETS) 212 213 213 - all: $(KBUILD_IMAGE) 214 + all: $(notdir $(KBUILD_IMAGE)) 214 215 215 216 $(BOOT_TARGETS): vmlinux 216 217 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
+2 -2
arch/unicore32/Makefile
··· 43 43 44 44 # Default defconfig and target when executing plain make 45 45 KBUILD_DEFCONFIG := $(ARCH)_defconfig 46 - KBUILD_IMAGE := zImage 46 + KBUILD_IMAGE := $(boot)/zImage 47 47 48 - all: $(KBUILD_IMAGE) 48 + all: zImage 49 49 50 50 zImage Image uImage: vmlinux 51 51 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
+4 -1
scripts/objdiff
··· 57 57 do_objdump() { 58 58 dir=$(get_output_dir $1) 59 59 base=${1##*/} 60 + stripped=$dir/${base%.o}.stripped 60 61 dis=$dir/${base%.o}.dis 61 62 62 63 [ ! -d "$dir" ] && mkdir -p $dir 63 64 64 65 # remove addresses for a cleaner diff 65 66 # http://dummdida.tumblr.com/post/60924060451/binary-diff-between-libc-from-scientificlinux-and 66 - $OBJDUMP -D $1 | sed "s/^[[:space:]]\+[0-9a-f]\+//" > $dis 67 + $STRIP -g $1 -R __bug_table -R .note -R .comment -o $stripped 68 + $OBJDUMP -D $stripped | sed -e "s/^[[:space:]]\+[0-9a-f]\+//" -e "s:^$stripped:$1:" > $dis 67 69 } 68 70 69 71 dorecord() { ··· 75 73 76 74 CMT="`git rev-parse --short HEAD`" 77 75 76 + STRIP="${CROSS_COMPILE}strip" 78 77 OBJDUMP="${CROSS_COMPILE}objdump" 79 78 80 79 for d in $FILES; do
+3 -13
scripts/package/builddeb
··· 69 69 echo "" >&2 70 70 echo "** ** ** WARNING ** ** **" >&2 71 71 echo "" >&2 72 - echo "Your architecture doesn't have it's equivalent" >&2 72 + echo "Your architecture doesn't have its equivalent" >&2 73 73 echo "Debian userspace architecture defined!" >&2 74 74 echo "Falling back to using your current userspace instead!" >&2 75 75 echo "Please add support for $UTS_MACHINE to ${0} ..." >&2 ··· 143 143 cp System.map "$tmpdir/boot/System.map-$version" 144 144 cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version" 145 145 fi 146 - # Not all arches include the boot path in KBUILD_IMAGE 147 - if [ -e $KBUILD_IMAGE ]; then 148 - cp $KBUILD_IMAGE "$tmpdir/$installed_image_path" 149 - else 150 - cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path" 151 - fi 146 + cp "$($MAKE -s image_name)" "$tmpdir/$installed_image_path" 152 147 153 148 if grep -q "^CONFIG_OF=y" $KCONFIG_CONFIG ; then 154 149 # Only some architectures with OF support have this target ··· 260 265 The sources may be found at most Linux archive sites, including: 261 266 https://www.kernel.org/pub/linux/kernel 262 267 263 - Copyright: 1991 - 2015 Linus Torvalds and others. 268 + Copyright: 1991 - 2017 Linus Torvalds and others. 264 269 265 270 The git repository for mainline kernel development is at: 266 271 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ··· 283 288 Priority: optional 284 289 Maintainer: $maintainer 285 290 Build-Depends: $build_depends 286 - Standards-Version: 3.8.4 287 291 Homepage: http://www.kernel.org/ 288 292 EOF 289 293 ··· 290 296 cat <<EOF >> debian/control 291 297 292 298 Package: $packagename 293 - Provides: linux-image, linux-image-2.6, linux-modules-$version 294 299 Architecture: any 295 300 Description: User Mode Linux kernel, version $version 296 301 User-mode Linux is a port of the Linux kernel to its own system call ··· 306 313 cat <<EOF >> debian/control 307 314 308 315 Package: $packagename 309 - Provides: linux-image, linux-image-2.6, linux-modules-$version 310 316 Suggests: $fwpackagename 311 317 Architecture: any 312 318 Description: Linux kernel, version $version ··· 338 346 cat <<EOF >> debian/control 339 347 340 348 Package: $kernel_headers_packagename 341 - Provides: linux-headers, linux-headers-2.6 342 349 Architecture: any 343 350 Description: Linux kernel headers for $KERNELRELEASE on \${kernel:debarch} 344 351 This package provides kernel header files for $KERNELRELEASE on \${kernel:debarch} ··· 395 404 396 405 Package: $dbg_packagename 397 406 Section: debug 398 - Provides: linux-debug, linux-debug-$version 399 407 Architecture: any 400 408 Description: Linux kernel debugging symbols for $version 401 409 This package will come in handy if you need to debug the kernel. It provides