summaryrefslogtreecommitdiff
path: root/core/linux/PKGBUILD
blob: 3b6010f687d91ce3c006d7e4c6ff8af7c5978114 (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
# upstream git revision: d299e4f0ee4303f6184169b7c55c2fbf54d158f2

# fail if upstream's .config changes
if [ "${sha256sums[4]}" = 'f8e890eac9779a89009c1e2339f757e9781864df09805211fad005146fe2578b' ]; then
  sha256sums[4]='6666e6530aac487c28c454c39021ce066b367f540448b4a4f17bfa0df480b824'
fi

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