Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Allow different kernel architectures to be specified | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | 
| Files: | files | file ages | folders | 
| SHA1: | 
ad02e80707793bbaad97fae21675e494 | 
| User & Date: | rkeene 2018-02-18 22:59:59 | 
Context
| 
   2018-02-19 
 | ||
| 02:28 | Upgraded to glibc 2.27 (needed for AArch64) check-in: edd4c58c17 user: rkeene tags: trunk | |
| 
   2018-02-18 
 | ||
| 22:59 | Allow different kernel architectures to be specified check-in: ad02e80707 user: rkeene tags: trunk | |
| 22:58 | Updated to support patching glibc check-in: f923507a5d user: rkeene tags: trunk | |
Changes
Changes to scripts/post/00-linux-kernel.
1 2 3 4 5 6 7 8 9  | 
#! /bin/bash
# URLs and versions
if [ -z "${LINUX_VERS}" ]; then
	LINUX_VERS='3.2.98'
	LINUX_TARBALL_SHA256="f31dc3ad9473086b413f8cd3daef1a8003481eb25910a617c74cbc640635eb31"
fi
if [ -z "${LINUX_URL}" ]; then
	LINUX_VERS_SHORT="$(echo "${LINUX_VERS}" | cut -f 1-2 -d '.')"
 | > > > > > > > > > > >  | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  | 
#! /bin/bash
# Platform identification
CCNAME="$1"
CCDIR="$2"
PREFIX="$3"
STAGE="$4"
. 'scripts/common'
# Platform-specific adjustments
kernelArch="${arch}"
# URLs and versions
if [ -z "${LINUX_VERS}" ]; then
	LINUX_VERS='3.2.98'
	LINUX_TARBALL_SHA256="f31dc3ad9473086b413f8cd3daef1a8003481eb25910a617c74cbc640635eb31"
fi
if [ -z "${LINUX_URL}" ]; then
	LINUX_VERS_SHORT="$(echo "${LINUX_VERS}" | cut -f 1-2 -d '.')"
 | 
| ︙ | ︙ | |||
30 31 32 33 34 35 36  | 
		LINUX_TARBALL_COMPRESSION='xz'
		LINUX_TARBALL_COMPRESSION_TOOL='xz'
		;;
esac
LINUX_TARBALL="src/linux-${LINUX_VERS}.tar.${LINUX_TARBALL_COMPRESSION}"
LINUX_DIR="linux-${LINUX_VERS}"
 | < < < < < <  | 41 42 43 44 45 46 47 48 49 50 51 52 53 54  | 
		LINUX_TARBALL_COMPRESSION='xz'
		LINUX_TARBALL_COMPRESSION_TOOL='xz'
		;;
esac
LINUX_TARBALL="src/linux-${LINUX_VERS}.tar.${LINUX_TARBALL_COMPRESSION}"
LINUX_DIR="linux-${LINUX_VERS}"
# Clean
if [ "$1" = "distclean" ]; then
	rm -f "${LINUX_TARBALL}"
	set -- clean
fi
 | 
| ︙ | ︙ | |||
63 64 65 66 67 68 69  | 
	exit 0
fi
if [ -d "${PREFIX}/include/linux" ]; then
	exit 0
fi
 | < < < > | |  | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97  | 
	exit 0
fi
if [ -d "${PREFIX}/include/linux" ]; then
	exit 0
fi
# Inform the user of what we are doing
echo " * Building Linux kernel headers for ${arch}"
# Download source
if [ ! -d "${LINUX_DIR}" ]; then
	download "${LINUX_URL}" "${LINUX_TARBALL}" "${LINUX_TARBALL_SHA256}" || exit 1
	"${LINUX_TARBALL_COMPRESSION_TOOL}" -dc "${LINUX_TARBALL}" | tar -xf -
fi
cp -rp "${LINUX_DIR}" "${LINUX_DIR}-${CCNAME}"
(
	cd "${LINUX_DIR}-${CCNAME}" || exit 1
	${MAKE} ${BUILD_CC_MAKE_FLAGS_SINGLE} CROSS_COMPILE="${CCNAME}-" ARCH="${kernelArch}" defconfig || exit 1
	${MAKE} ${BUILD_CC_MAKE_FLAGS_SINGLE} CROSS_COMPILE="${CCNAME}-" ARCH="${kernelArch}" INSTALL_HDR_PATH="${PREFIX}" headers_install || exit 1
) || exit 1
rm -rf "${LINUX_DIR}-${CCNAME}"
exit 0
 |