Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/linux/PKGBUILD
blob: 8531be1d5f76a8aca221ec534d0abcdb752e7a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# upstream git revision: 9a8d23e9abeb3de414fe2f2bb62a83193f59c390

# fail if upstream's .config changes
for ((i=0; i<${#sha256sums[@]}; i++)); do
  if [ "${sha256sums[${i}]}" = 'bb700544d499a92dab141a218cc1eac62fdff0b67682748cb827035269c02a55' ]; then
    sha256sums[${i}]='35627a74558c1171af386dcb6d69c45619ec3189a4c6444d94b94f75f19da5c6'
  fi
done

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
      }
    '
)"

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # no documentation
  makedepends=(${makedepends[@]//xmlto/})

  # use i486-specific kernel configuration
  source[4]='config.i486'
  sha256sums[4]='8bb140f3f672d6e10bfb652a617d0c161b24980c750d2358cece2b82f8897dcb'
  eval "$(
    declare -f prepare | \
      sed '
        /cd.*_srcname/ a \ cp ../config.i486 ../config
      '
  )"
fi