diff options
Diffstat (limited to 'scripts/package/mkspec')
-rwxr-xr-x | scripts/package/mkspec | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index e05646dc24dc..009147d4718e 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec | |||
@@ -12,6 +12,7 @@ | |||
12 | # how we were called determines which rpms we build and how we build them | 12 | # how we were called determines which rpms we build and how we build them |
13 | if [ "$1" = prebuilt ]; then | 13 | if [ "$1" = prebuilt ]; then |
14 | S=DEL | 14 | S=DEL |
15 | MAKE="$MAKE -f $srctree/Makefile" | ||
15 | else | 16 | else |
16 | S= | 17 | S= |
17 | fi | 18 | fi |
@@ -78,19 +79,19 @@ $S %prep | |||
78 | $S %setup -q | 79 | $S %setup -q |
79 | $S | 80 | $S |
80 | $S %build | 81 | $S %build |
81 | $S make %{?_smp_mflags} KBUILD_BUILD_VERSION=%{release} | 82 | $S $MAKE %{?_smp_mflags} KBUILD_BUILD_VERSION=%{release} |
82 | $S | 83 | $S |
83 | %install | 84 | %install |
84 | mkdir -p %{buildroot}/boot | 85 | mkdir -p %{buildroot}/boot |
85 | %ifarch ia64 | 86 | %ifarch ia64 |
86 | mkdir -p %{buildroot}/boot/efi | 87 | mkdir -p %{buildroot}/boot/efi |
87 | cp \$(make image_name) %{buildroot}/boot/efi/vmlinuz-$KERNELRELEASE | 88 | cp \$($MAKE image_name) %{buildroot}/boot/efi/vmlinuz-$KERNELRELEASE |
88 | ln -s efi/vmlinuz-$KERNELRELEASE %{buildroot}/boot/ | 89 | ln -s efi/vmlinuz-$KERNELRELEASE %{buildroot}/boot/ |
89 | %else | 90 | %else |
90 | cp \$(make image_name) %{buildroot}/boot/vmlinuz-$KERNELRELEASE | 91 | cp \$($MAKE image_name) %{buildroot}/boot/vmlinuz-$KERNELRELEASE |
91 | %endif | 92 | %endif |
92 | $M make %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} KBUILD_SRC= modules_install | 93 | $M $MAKE %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} modules_install |
93 | make %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr KBUILD_SRC= headers_install | 94 | $MAKE %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr headers_install |
94 | cp System.map %{buildroot}/boot/System.map-$KERNELRELEASE | 95 | cp System.map %{buildroot}/boot/System.map-$KERNELRELEASE |
95 | cp .config %{buildroot}/boot/config-$KERNELRELEASE | 96 | cp .config %{buildroot}/boot/config-$KERNELRELEASE |
96 | bzip2 -9 --keep vmlinux | 97 | bzip2 -9 --keep vmlinux |