public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] add ia64 support to rpm Makefile target
@ 2004-07-29 18:07 Greg Edwards
  2004-07-29 23:52 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Edwards @ 2004-07-29 18:07 UTC (permalink / raw)
  To: kai, sam; +Cc: linux-kernel

On ia64, only the EFI (fat) partition is available to boot from.  The rpm
needs to install the kernel under /boot/efi to be useable on ia64.

Signed-off-by: Greg Edwards <edwardsg@sgi.com>


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/07/29 13:00:54-05:00 edwardsg@attica.americas.sgi.com 
#   Add ia64 support to the rpm Makefile target.
# 
# scripts/package/mkspec
#   2004/07/29 13:00:41-05:00 edwardsg@attica.americas.sgi.com +13 -2
#   On ia64, only the EFI (fat) partition is available to boot from.  The
#   rpm needs to install the kernel under /boot/efi to be useable on ia64.
# 
diff -Nru a/scripts/package/mkspec b/scripts/package/mkspec
--- a/scripts/package/mkspec	2004-07-29 13:04:34 -05:00
+++ b/scripts/package/mkspec	2004-07-29 13:04:34 -05:00
@@ -43,10 +43,21 @@
 echo "make clean && make"
 echo ""
 echo "%install"
-echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
+
+if [[ "$ARCH" != "ia64" ]]; then
+	echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
+else
+	echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
+fi
 
 echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install'
-echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+
+if [[ "$ARCH" != "ia64" ]]; then
+	echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+else
+	echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/efi/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+	echo 'ln -s '"efi/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION" '$RPM_BUILD_ROOT'"/boot/"
+fi
 
 echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] add ia64 support to rpm Makefile target
  2004-07-29 18:07 [PATCH] add ia64 support to rpm Makefile target Greg Edwards
@ 2004-07-29 23:52 ` Andreas Schwab
  2004-07-30 15:11   ` Greg Edwards
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2004-07-29 23:52 UTC (permalink / raw)
  To: Greg Edwards; +Cc: kai, sam, linux-kernel

Greg Edwards <edwardsg@sgi.com> writes:

> diff -Nru a/scripts/package/mkspec b/scripts/package/mkspec
> --- a/scripts/package/mkspec	2004-07-29 13:04:34 -05:00
> +++ b/scripts/package/mkspec	2004-07-29 13:04:34 -05:00
> @@ -43,10 +43,21 @@
>  echo "make clean && make"
>  echo ""
>  echo "%install"
> -echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
> +
> +if [[ "$ARCH" != "ia64" ]]; then
> +	echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
> +else
> +	echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
> +fi

How about using %ifarch ia64 in the generated spec file?

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] add ia64 support to rpm Makefile target
  2004-07-29 23:52 ` Andreas Schwab
@ 2004-07-30 15:11   ` Greg Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Edwards @ 2004-07-30 15:11 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: kai, sam, linux-kernel

On Fri, Jul 30, 2004 at 01:52:01AM +0200, Andreas Schwab wrote:
|
| How about using %ifarch ia64 in the generated spec file?

Yeah, I think I like that better, too.  New patch attached below.

Greg

Signed-off-by: Greg Edwards <edwardsg@sgi.com>


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/07/29 13:00:54-05:00 edwardsg@attica.americas.sgi.com 
#   Add ia64 support to the rpm Makefile target.
# 
# scripts/package/mkspec
#   2004/07/29 13:00:41-05:00 edwardsg@attica.americas.sgi.com +13 -2
#   On ia64, only the EFI (fat) partition is available to boot from.  The
#   rpm needs to install the kernel under /boot/efi to be useable on ia64.
# 
# mkspec |    9 +++++++++
# 1 files changed, 9 insertions(+)
#
Index: work-26x-bk/scripts/package/mkspec
===================================================================
--- work-26x-bk.orig/scripts/package/mkspec	2004-07-29 15:40:16.000000000 -0500
+++ work-26x-bk/scripts/package/mkspec	2004-07-30 09:44:51.000000000 -0500
@@ -43,10 +43,19 @@ echo "%build"
 echo "make clean && make"
 echo ""
 echo "%install"
+echo "%ifarch ia64"
+echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
+echo "%else"
 echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
+echo "%endif"
 
 echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install'
+echo "%ifarch ia64"
+echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/efi/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+echo 'ln -s '"efi/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION" '$RPM_BUILD_ROOT'"/boot/"
+echo "%else"
 echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+echo "%endif"
 
 echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-30 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-29 18:07 [PATCH] add ia64 support to rpm Makefile target Greg Edwards
2004-07-29 23:52 ` Andreas Schwab
2004-07-30 15:11   ` Greg Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox