# upstream git revision: 7365aa1c8dfe3513d6149bc4f5020815b8752224 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}]}" = 'c8f26962e51fb2ef7628cb90c93f93d53ff5a8874d16322783152cf89007887c' ]; then sha256sums_pentium4=('4543f580f4b072e9a678e4a463e32012075f81c881f94a89f911c9354c473fe7') sha256sums_i686=('00c1c8558ffdaf392dbd5f56c727cae4a5f2b480aab2f4f8e2021dd140ae3171') sha256sums_i486=('78f2e533f4ac39212f32a13a868d304b00eaed2e0e090d9d3f4023f755d6b982') 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 -n ' s@^\(\([^:]\+\)::\)\?\(git\|hg\)+\([^#?]\+\)\(?signed\)\?#\(\(tag\|commit\)=\S\+\)$@\3 \2 \4 \5 \6@ T p ' ) 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