2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-24 10:29:53 +00:00
xcat-dep/xnba/README

52 lines
2.5 KiB
Plaintext
Raw Normal View History

Get latest ipxe source from git.ipxe.org
----------------------------------------
Current version is 1.20.1, the tar command below will use 1.20.1 to generate xnba-1.20.1.tar.bz2 the source code of ipxe version 1.20.1 (10/29/2020 ?)
2021-01-29 21:46:05 +00:00
1. git clone git://git.ipxe.org/ipxe.git
2. tar Jcvf xnba-<version>.tar.bz2 --exclude-vcs ipxe
2021-01-29 21:46:05 +00:00
Build xNBA rpm for xcat-dep
---------------------------
2021-02-01 16:31:44 +00:00
1. Clone xcat-dep/xnba and create a new branch: git clone git@github.com:xcat2/xcat-dep.git; cd xcat-dep; git checkout -b <new branch>
2. Checkin the generated xnba-<version>.tar.bz2 file from above into git
2021-06-08 19:36:26 +00:00
3. If needed, modify existing or create additional patch files and checkin into git. The patch files will automatically be applied during build step below.
2021-06-14 15:00:28 +00:00
The following patches currently contain modification for xCAT Network Boot Agent
2020-11-12 19:47:42 +00:00
ipxe-xnbaclass.patch
ipxe-machyp.patch
ipxe-dhcp.patch
ipxe-branding.patch
2021-06-08 19:36:26 +00:00
ipxe-verbump.patch
2020-11-12 19:47:42 +00:00
2021-06-14 15:00:28 +00:00
3.a To modify existing or create additional patch file:
i. git clone git://git.ipxe.org/ipxe.git
ii. Make changes to the files under ipxei/src directory
iii. git diff <changed file>
iv. If creating a new patch, place output of the command above into the .patch file.
v. If modifying existong patch, replace the contnts of the .patch file with the output of the command above.
vi. Be carefull of spaces vs. tabs. If original source file contained tabs, the .patch file should also have tabs for the patched lines.
2021-02-01 16:31:44 +00:00
4. On x86 build machine, checkout the branch created above: git clone https://github.com/xcat2/xcat-dep.git; cd xcat-dep;
2020-11-12 19:47:42 +00:00
For linux
---------
2021-02-01 17:08:43 +00:00
1. On x86 RHEL machine, install required package: xz-devel and gcc
2021-06-08 19:36:26 +00:00
2. Copy 5 patch files listed above and xnba-<version>.tar.bz2 from cloned git directory into /root/rpmbuild/SOURCES/
2021-02-01 18:55:53 +00:00
3. RPM build: cd xcat-dep/xnba; rpmbuild -ba xnba-undi.spec
4. Copy generated rpm /root/rpmbuild/RPMS/noarch/xnba-undi-<version>.noarch.rpm into /gsa/pokgsa/projects/x/xcat/build/linux/xcat-dep/
For Debian
----------
2021-02-01 18:54:26 +00:00
1. On x86 Ubuntu machine, install required packages: liblzma-dev, dpkg-dev, debhelper, and quilt
2021-02-01 17:31:22 +00:00
2. cd xcat-dep/xnba; ./make_deb.sh: build the package from the binaries under "binary" directory
3. ./rebuild.sh : build the package from source code, this should only run on amd64/x86_64 platform, it will update the files under "binary" directory after compilation
2021-02-01 18:54:26 +00:00
4. Copy generated deb file xcat-dep/xnba-undi_<version>_all.deb into /gsa/pokgsa/projects/x/xcat/build/ubuntu/xcat-dep/xcat-dep/pool/main/x/xnba-undi/