diff --git a/grub2-xcat.recompile/Makefile b/grub2-xcat.recompile/Makefile index 66772eb..6768bea 100644 --- a/grub2-xcat.recompile/Makefile +++ b/grub2-xcat.recompile/Makefile @@ -2,7 +2,7 @@ # Maintainer: GONG Jie # -SRC_RPM = grub2-2.02-0.16.ael7b.src.rpm +SRC_RPM = grub2-2.02-0.16.el7.src.rpm SPEC_TEMPLATE = grub2-xcat.spec.template #BUILD_NUMBER_FILE = build-number.txt diff --git a/grub2-xcat.recompile/README b/grub2-xcat.recompile/README index 9eefb33..2e6d8bd 100644 --- a/grub2-xcat.recompile/README +++ b/grub2-xcat.recompile/README @@ -1,12 +1,32 @@ -The latest source rpm file of grub2 can be obtained from the source codes of -the Red Hat Enterprse Linux. The current source rpm file, -grub2-2.02-0.16.xcat.src.rpm, was obtained from RHEL 7.1 Alpha with a little -modification. When a new source rpm file is available, please update the -Makefile accordingly. And the Version and Release sections in the template -of the spec file, grub2-xcat.spec.template should also be updated. +The grub2-xcat rpm/deb package can be built from the grub2 source package shipped in Redhat/Fedora/CentOS... + +The steps: + +1.build grub2-xcat rpm + +For rpm package compling, a RHEL 7 environment on powerpc64 is required. Please make sure all the necessary build tools are installed, the list of the build tools can be showed by: +================================================== +rpm -qpR +================================================== + +(1)obtain the grub2 source rpm +The latest source rpm file of grub2 can be obtained from the source codes of the Red Hat Enterprse Linux. The current source rpm file, grub2-2.02-0.16.ael7b.src.rpm, was obtained from RHEL 7.1. + +(2)update the Makefile +When a new source rpm file is available, please update the following line in the Makefile accordingly. +================================================== +SRC_RPM = +================================================== + +(3)run "./makerpm" to generate the grub2-xcat rpm, which can be found in current dir. + +(4)upload the grub2-xcat rpm to the build server and checkin the modified Makefile to xcat-dep git code base. + +2. build grub2-deb rpm + +For deb package generating, a Debian or Ubunutu environment on any architecture wilth alien installed should work. +running "./makedeb" will convert the grub2-xcat rpm generated above to deb package. + +Finally, upload the deb package to the build server. -For rpm package compling, a RHEL 7 environment on powerpc64 is needed. -For deb package generating, a Debian or Ubunutu environment on any architecture -should work. It will re-pack the grub2-xcat.noarch.rpm to deb package. Thus, -the rpm package must be compiled at first. diff --git a/grub2-xcat.recompile/grub2-2.02-0.16.el7.src.rpm b/grub2-xcat.recompile/grub2-2.02-0.16.el7.src.rpm new file mode 100644 index 0000000..4508cd6 Binary files /dev/null and b/grub2-xcat.recompile/grub2-2.02-0.16.el7.src.rpm differ