mkwinpeimg: disable IA64 support
authorEric Biggers <ebiggers3@gmail.com>
Wed, 23 Jan 2013 00:39:35 +0000 (18:39 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 23 Jan 2013 00:39:35 +0000 (18:39 -0600)
syslinux does not support ia64 which automatically makes ia64 a special case.
Leaving out support for now.

doc/mkwinpeimg.1.in
programs/mkwinpeimg

index 1f2dc187f36d58404fc31a95bad8747f4fe03569..8c5d62a482a25beb8b0788814e89fc7f7d2643e6 100644 (file)
@@ -81,7 +81,9 @@ Use DIR for temporary files.  Defaults to a directory made using "mktemp -d".
 \fB\-a\fR, \fB\-\-arch\fR=\fIARCH\fR
 Use the Windows PE version from the Windows Automated Installation Kit that has
 the CPU architecture \fIARCH\fR.  Only valid with \fB\-\-waik\-dir\fR.  Possible
 \fB\-a\fR, \fB\-\-arch\fR=\fIARCH\fR
 Use the Windows PE version from the Windows Automated Installation Kit that has
 the CPU architecture \fIARCH\fR.  Only valid with \fB\-\-waik\-dir\fR.  Possible
-values: "x86", "amd64", or "ia64".  Default is "x86".
+values: "x86" or "amd64".  Default is "x86".  Note: the WAIK also contains a
+Windows PE image for the ia64 (Itanium) architecture; however, this is not
+supported by this script.
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help.
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help.
index 3075c28d112f31bbe1310569bb219709e8fb3c94..2075dc203e2b2342189f3cea059e6f7292769d94 100755 (executable)
@@ -108,7 +108,7 @@ Usage: $script_name [OPTIONS] IMAGE
                               Defaults to making one using "mktemp -d".
   -a, --arch=ARCH          Use the Windows PE version from the WAIK that has
                               the CPU architecture ARCH.  Possible values:
                               Defaults to making one using "mktemp -d".
   -a, --arch=ARCH          Use the Windows PE version from the WAIK that has
                               the CPU architecture ARCH.  Possible values:
-                              "x86", "amd64", or "ia64".  Default is "x86".
+                              "x86" or "amd64".  Default is "x86".
   -h, --help               Display this information.
   -v, --version            Show version information.
 
   -h, --help               Display this information.
   -v, --version            Show version information.
 
@@ -183,14 +183,17 @@ process_command_line() {
                        if [ "$2" == "x86" ]; then
                                arch="X86"
                                arch_id="1"
                        if [ "$2" == "x86" ]; then
                                arch="X86"
                                arch_id="1"
-                       elif [ "$2" == "ia64" ]; then
-                               arch="IA64"
-                               arch_id="2"
+                       # Need to test Itanium images before making it an
+                       # option.  Note: syslinux is x86 only so can't be used
+                       # for the Itanium disk image.
+                       #elif [ "$2" == "ia64" ]; then
+                               #arch="IA64"
+                               #arch_id="2"
                        elif [ "$2" == "amd64" ]; then
                                arch="AMD64"
                                arch_id="3"
                        else 
                        elif [ "$2" == "amd64" ]; then
                                arch="AMD64"
                                arch_id="3"
                        else 
-                               echo "ERROR: $2 is not a valid arch (x86/amd64/ia64)"
+                               echo "ERROR: $2 is not a valid arch (x86/amd64)"
                                exit 1
                        fi
                        shift
                                exit 1
                        fi
                        shift