summaryrefslogtreecommitdiff
path: root/core/linux-lts/PKGBUILD
blob: db9a83d593ae360032a57105490004d881958b0d (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: 8f89462edc352795f14a0b92531e673a8e5c5076

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

eval "$(
  declare -f package_linux-lts-headers | \
    sed '
      \,/tools/objtool" ,d
      \,arch/x86/Makefile,a install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile_32.cpu
    '
)"

# avoid using zstd compression in ultra mode (exhausts virtual memory)
source+=('no-ultra-zstd.patch')
sha256sums+=('3997ce6033fdf950a9960f1db720b38c47b1a2e06ab75fc6712c154f596e7c47')
# upstream prepare() does already do the *.patch patching

# temporarily disabled documentation due to sphinx_rtd_theme (FS32#163)
pkgname=(
  $(
    printf '%s\n' "${pkgname[@]}" | \
      grep -v '^\$pkgbase-docs'
  )
)
eval "$(
  declare -f build | \
    sed '
      s/\bhtmldocs\b//
    '
)"