| .. | .. |
|---|
| 12 | 12 | # how we were called determines which rpms we build and how we build them |
|---|
| 13 | 13 | if [ "$1" = prebuilt ]; then |
|---|
| 14 | 14 | S=DEL |
|---|
| 15 | + MAKE="$MAKE -f $srctree/Makefile" |
|---|
| 15 | 16 | else |
|---|
| 16 | 17 | S= |
|---|
| 17 | 18 | fi |
|---|
| .. | .. |
|---|
| 28 | 29 | |
|---|
| 29 | 30 | PROVIDES="$PROVIDES kernel-$KERNELRELEASE" |
|---|
| 30 | 31 | __KERNELRELEASE=$(echo $KERNELRELEASE | sed -e "s/-/_/g") |
|---|
| 31 | | -EXCLUDES="$RCS_TAR_IGNORE --exclude=.tmp_versions --exclude=*vmlinux* \ |
|---|
| 32 | +EXCLUDES="$RCS_TAR_IGNORE --exclude=*vmlinux* --exclude=*.mod \ |
|---|
| 32 | 33 | --exclude=*.o --exclude=*.ko --exclude=*.cmd --exclude=Documentation \ |
|---|
| 33 | | ---exclude=.config.old --exclude=.missing-syscalls.d" |
|---|
| 34 | +--exclude=.config.old --exclude=.missing-syscalls.d --exclude=*.s" |
|---|
| 34 | 35 | |
|---|
| 35 | 36 | # We can label the here-doc lines for conditional output to the spec file |
|---|
| 36 | 37 | # |
|---|
| .. | .. |
|---|
| 45 | 46 | License: GPL |
|---|
| 46 | 47 | Group: System Environment/Kernel |
|---|
| 47 | 48 | Vendor: The Linux Community |
|---|
| 48 | | - URL: http://www.kernel.org |
|---|
| 49 | + URL: https://www.kernel.org |
|---|
| 49 | 50 | $S Source: kernel-$__KERNELRELEASE.tar.gz |
|---|
| 50 | 51 | Provides: $PROVIDES |
|---|
| 51 | 52 | %define __spec_install_post /usr/lib/rpm/brp-compress || : |
|---|
| .. | .. |
|---|
| 78 | 79 | $S %setup -q |
|---|
| 79 | 80 | $S |
|---|
| 80 | 81 | $S %build |
|---|
| 81 | | -$S make %{?_smp_mflags} KBUILD_BUILD_VERSION=%{release} |
|---|
| 82 | +$S $MAKE %{?_smp_mflags} KBUILD_BUILD_VERSION=%{release} |
|---|
| 82 | 83 | $S |
|---|
| 83 | 84 | %install |
|---|
| 84 | 85 | mkdir -p %{buildroot}/boot |
|---|
| 85 | 86 | %ifarch ia64 |
|---|
| 86 | 87 | mkdir -p %{buildroot}/boot/efi |
|---|
| 87 | | - cp \$(make image_name) %{buildroot}/boot/efi/vmlinuz-$KERNELRELEASE |
|---|
| 88 | + cp \$($MAKE -s image_name) %{buildroot}/boot/efi/vmlinuz-$KERNELRELEASE |
|---|
| 88 | 89 | ln -s efi/vmlinuz-$KERNELRELEASE %{buildroot}/boot/ |
|---|
| 89 | 90 | %else |
|---|
| 90 | | - cp \$(make image_name) %{buildroot}/boot/vmlinuz-$KERNELRELEASE |
|---|
| 91 | + cp \$($MAKE -s image_name) %{buildroot}/boot/vmlinuz-$KERNELRELEASE |
|---|
| 91 | 92 | %endif |
|---|
| 92 | | -$M make %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} KBUILD_SRC= modules_install |
|---|
| 93 | | - make %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr KBUILD_SRC= headers_install |
|---|
| 93 | +$M $MAKE %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} modules_install |
|---|
| 94 | + $MAKE %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr headers_install |
|---|
| 94 | 95 | cp System.map %{buildroot}/boot/System.map-$KERNELRELEASE |
|---|
| 95 | 96 | cp .config %{buildroot}/boot/config-$KERNELRELEASE |
|---|
| 96 | 97 | bzip2 -9 --keep vmlinux |
|---|