# upstream git revision: ffbb18a6cc65f5d10076059f8876364ded2799d8 source_pentium4=('config.pentium4') source_i686=('config.i686') source_i486=('config.i486') # fail if upstream's .config changes for ((i=0; i<${#sha256sums[@]}; i++)); do if [ "${sha256sums[${i}]}" = 'e6e80f91b16dc639679fe1d5dfae5097e1e4e91b11ea4539790719511921ccc0' ]; then sha256sums_pentium4=('61fab0df3e155186c002f5e7ea181c33905528c37ba0f9cfd85c14a433fe825e') sha256sums_i686=('d2a1c6f0fd79ed0ba61e6f54fce5db3c778c4f7aca56f6a8dda0641463ffb365') sha256sums_i486=('7ffb3e8f3565c725ea2279db48964767cadb4e6507bf7a0cb74fa67903ac3318') fi done # copy architecture specific config file, not default 'config' eval "$( declare -f prepare | \ sed ' s,\.\./config,../config.$CARCH, ' )" # patch architecture when copying the kernel Makefile eval "$( declare -f package_linux-headers | \ sed ' \,/tools/objtool" ,d \,arch/x86/Makefile, { a \ install -t "${builddir}/arch/x86" -m644 arch/x86/Makefile_32.cpu } ' )" # use our tarballer instead of cloning from git for ((i=0; i<${#source[@]}; i++)); do infos=$( printf '%s\n' "${source[${i}]}" | \ sed ' s@^\(\([^:]\+\)::\)\?\(git\|hg\)+\([^#?]\+\)\(?signed\)\?#\(\(tag\|commit\)=[^?]\+\)$@\3 \2 \4 \5 \6@ t s@^\(\([^:]\+\)::\)\?\(git\|hg\)+\([^#?]\+\)#\(\(tag\|commit\)=[^?]\+\)\(?signed\)\?$@\3 \2 \4 \7 \5@ t d ' ) if [ -n "${infos}" ]; then source[${i}]=$( type="${infos%% *}" infos="${infos#* }" if [ -n "${infos%% *}" ]; then prefix="${infos%% *}" else prefix='' fi infos="${infos#* }" repo="${infos%% *}" repo64=$( printf '%s' "${repo}" | \ base64 -w0 | \ sed 's/=/%3D/g' ) infos="${infos#* }" if [ "${infos%% *}" = '?signed' ]; then key_check=$( printf '&valid_keys=' printf '%s,' "${validpgpkeys[@]}" | \ sed 's/,$//' ) else key_check='' fi infos="${infos#* }" if [ -z "${prefix}" ]; then prefix="${repo%.git}" prefix="${prefix##*/}" fi prefix_64=$( printf '%s/' "${prefix}" | \ base64 -w0 | \ sed 's/=/%3D/g' ) printf '%s-%s.tar.gz::https://archive-server.archlinux32.org/?t=%s&p=%s&r=%s%s&%s\n' \ "${prefix}" \ "${pkgver}" \ "${type}" \ "${prefix_64}" \ "${repo64}" \ "${key_check}" \ "${infos}" ) fi done # avoid using zstd compression in ultra mode (exhausts virtual memory) source+=('core/linux/no-ultra-zstd.patch') sha256sums+=('3997ce6033fdf950a9960f1db720b38c47b1a2e06ab75fc6712c154f596e7c47') # upstream prepare() does already do the *.patch patching