mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-29 05:50:28 +09:00
Merge tag 'kbuild-fixes-v6.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - Remove unused scripts/gcc-ld script - Add zstd support to scripts/extract-ikconfig - Check 'make headers' for UML - Fix scripts/mksysmap to ignore local symbols * tag 'kbuild-fixes-v6.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: mksysmap: Fix the mismatch of 'L0' symbols in System.map kbuild: disable header exports for UML in a straightforward way scripts/extract-ikconfig: add zstd compression support scripts: remove obsolete gcc-ld script
This commit is contained in:
3
Makefile
3
Makefile
@@ -1287,8 +1287,7 @@ hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj
|
||||
|
||||
PHONY += headers
|
||||
headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
|
||||
$(if $(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/Kbuild),, \
|
||||
$(error Headers not exportable for the $(SRCARCH) architecture))
|
||||
$(if $(filter um, $(SRCARCH)), $(error Headers not exportable for UML))
|
||||
$(Q)$(MAKE) $(hdr-inst)=include/uapi
|
||||
$(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ try_decompress 'BZh' xy bunzip2
|
||||
try_decompress '\135\0\0\0' xxx unlzma
|
||||
try_decompress '\211\114\132' xy 'lzop -d'
|
||||
try_decompress '\002\041\114\030' xyy 'lz4 -d -l'
|
||||
try_decompress '\050\265\057\375' xxx unzstd
|
||||
|
||||
# Bail out:
|
||||
echo "$me: Cannot find kernel config." >&2
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#!/bin/sh
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# run gcc with ld options
|
||||
# used as a wrapper to execute link time optimizations
|
||||
# yes virginia, this is not pretty
|
||||
|
||||
ARGS="-nostdlib"
|
||||
|
||||
while [ "$1" != "" ] ; do
|
||||
case "$1" in
|
||||
-save-temps|-m32|-m64) N="$1" ;;
|
||||
-r) N="$1" ;;
|
||||
-[Wg]*) N="$1" ;;
|
||||
-[olv]|-[Ofd]*|-nostdlib) N="$1" ;;
|
||||
--end-group|--start-group)
|
||||
N="-Wl,$1" ;;
|
||||
-[RTFGhIezcbyYu]*|\
|
||||
--script|--defsym|-init|-Map|--oformat|-rpath|\
|
||||
-rpath-link|--sort-section|--section-start|-Tbss|-Tdata|-Ttext|\
|
||||
--version-script|--dynamic-list|--version-exports-symbol|--wrap|-m)
|
||||
A="$1" ; shift ; N="-Wl,$A,$1" ;;
|
||||
-[m]*) N="$1" ;;
|
||||
-*) N="-Wl,$1" ;;
|
||||
*) N="$1" ;;
|
||||
esac
|
||||
ARGS="$ARGS $N"
|
||||
shift
|
||||
done
|
||||
|
||||
exec $CC $ARGS
|
||||
@@ -41,4 +41,4 @@
|
||||
# so we just ignore them to let readprofile continue to work.
|
||||
# (At least sparc64 has __crc_ in the middle).
|
||||
|
||||
$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)' > $2
|
||||
$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)\|\( L0\)' > $2
|
||||
|
||||
Reference in New Issue
Block a user