mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-12-23 19:51:42 +00:00
to support ppc64el for ipmitool-xcat
Former-commit-id: 60ac6a4d54f582ec77487be1a8facf56976be00e
This commit is contained in:
parent
a356c3097c
commit
861bf0ecd7
@ -6,7 +6,7 @@ Build-Depends: debhelper (>> 4.0.0), libreadline-dev, libssl-dev, quilt, autotoo
|
||||
Standards-Version: 3.6.2.1
|
||||
|
||||
Package: ipmitool-xcat
|
||||
Architecture: i386 amd64 ia64
|
||||
Architecture: i386 amd64 ia64 ppc64el
|
||||
Depends: ${shlibs:Depends}, lsb-base
|
||||
Suggests: openipmi
|
||||
Description: utility for IPMI control with kernel driver or LAN interface
|
||||
|
@ -3,6 +3,9 @@
|
||||
#export DH_VERBOSE=1
|
||||
export DH_COMPAT=4
|
||||
export DH_OPTIONS
|
||||
ifndef TARGET_ARCH
|
||||
TARGET_ARCH=amd64
|
||||
endif
|
||||
|
||||
CFLAGS = -Wall -g
|
||||
|
||||
@ -20,9 +23,17 @@ configure-stamp:
|
||||
dh_testdir
|
||||
dh --with quilt build
|
||||
|
||||
ifneq ($(TARGET_ARCH),ppc64el)
|
||||
./configure --prefix=/usr \
|
||||
--with-kerneldir \
|
||||
--mandir=/usr/share/man
|
||||
--with-kerneldir \
|
||||
--mandir=/usr/share/man
|
||||
|
||||
else
|
||||
./configure --prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--build=powerpc64le-linux-gnu
|
||||
|
||||
endif
|
||||
touch configure-stamp
|
||||
|
||||
#Architecture
|
||||
|
@ -3,6 +3,14 @@
|
||||
tar xvfz ipmitool-1.8.11.tar.gz
|
||||
cd ipmitool-1.8.11
|
||||
cp -rL ../debian .
|
||||
dpkg-buildpackage -uc -us
|
||||
HOST_ARCH=`uname -m`
|
||||
if [ "$HOST_ARCH" = "ppc64le" ]; then
|
||||
HOST_ARCH="ppc64el"
|
||||
elif [ "$HOST_ARCH" = "x86_64" ]; then
|
||||
HOST_ARCH="amd64"
|
||||
else
|
||||
HOST_ARCH="amd64"
|
||||
fi
|
||||
TARGET_ARCH=$HOST_ARCH dpkg-buildpackage -uc -us
|
||||
cd -
|
||||
rm -rf ipmitool-1.8.11
|
||||
|
Loading…
Reference in New Issue
Block a user