Skip to content

Commit b7459bc

Browse files
authored
Update ipxe, remove go-bindata use embed instead (#6)
1 parent 75c75c3 commit b7459bc

File tree

543 files changed

+43614
-6426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

543 files changed

+43614
-6426
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ pcap/pcap.test
55
pixiecore/pixiecore.test
66
vendor/
77
build/
8-
bin

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ RUN make
55

66
FROM alpine:3.15
77
RUN apk -U add ca-certificates
8-
COPY --from=builder /work/bin/pixie /pixie
8+
COPY --from=builder /work/build/pixie /pixie
99
ENTRYPOINT ["/pixie"]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ pixie: test
2121
-X 'github.com/metal-stack/v.Revision=$(GITVERSION)' \
2222
-X 'github.com/metal-stack/v.GitSHA1=$(SHA)' \
2323
-X 'github.com/metal-stack/v.BuildDate=$(BUILDDATE)'" \
24-
-o bin/pixie github.com/metal-stack/pixie/cmd
25-
strip bin/pixie
24+
-o build/pixie github.com/metal-stack/pixie/cmd
25+
strip build/pixie
2626

2727
.PHONY: test
2828
test:

cmd/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import (
2121
)
2222

2323
func main() {
24-
cli.Ipxe[pixiecore.FirmwareX86PC] = ipxe.MustAsset("undionly.kpxe")
25-
cli.Ipxe[pixiecore.FirmwareEFI32] = ipxe.MustAsset("ipxe-i386.efi")
26-
cli.Ipxe[pixiecore.FirmwareEFI64] = ipxe.MustAsset("ipxe-x86_64.efi")
27-
cli.Ipxe[pixiecore.FirmwareEFIBC] = ipxe.MustAsset("ipxe-x86_64.efi")
28-
cli.Ipxe[pixiecore.FirmwareX86Ipxe] = ipxe.MustAsset("ipxe.pxe")
24+
cli.Ipxe[pixiecore.FirmwareX86PC] = ipxe.MustGet("undionly.kpxe")
25+
cli.Ipxe[pixiecore.FirmwareEFI32] = ipxe.MustGet("ipxe-i386.efi")
26+
cli.Ipxe[pixiecore.FirmwareEFI64] = ipxe.MustGet("ipxe-x86_64.efi")
27+
cli.Ipxe[pixiecore.FirmwareEFIBC] = ipxe.MustGet("ipxe-x86_64.efi")
28+
cli.Ipxe[pixiecore.FirmwareX86Ipxe] = ipxe.MustGet("ipxe.pxe")
2929
cli.CLI()
3030
}

pixiecore/boot.ipxe

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ goto loop
4444
:boot
4545
chain ${filename}
4646

47-
# Failure at this point probably means Pixiecore changed its mind
47+
# Failure at this point probably means Pixie changed its mind
4848
# about whether this machine should be booted in the middle of the
4949
# boot cycle, so we had already handed off to iPXE, but now we're
5050
# no longer serving a boot script for it.
@@ -59,8 +59,8 @@ chain ${filename}
5959
:fail
6060
echo Failed to get a ProxyDHCP response after ${attempts} attempts
6161
echo
62-
echo If you are sure that Pixiecore is still trying to boot this machine,
63-
echo please file a bug at https://github.com/google/netboot .
62+
echo If you are sure that Pixie is still trying to boot this machine,
63+
echo please file a bug at https://github.com/metal-stack/pixie .
6464
echo
6565
echo Rebooting in 5 seconds...
6666
sleep 5

third_party/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
.PHONY: ipxe
1+
# Not requires liblzma-dev package installed
22

3+
.PHONY: ipxe
34
ipxe:
45
rm -rf ipxe
5-
git clone https://git.ipxe.org/ipxe.git
6+
git clone https://github.com/ipxe/ipxe.git
67
(cd ipxe && git rev-parse HEAD >COMMIT-ID)
78
rm -rf ipxe/.git
89
(cd ipxe/src &&\
@@ -12,6 +13,4 @@ ipxe:
1213
mv -f ipxe/src/bin/undionly.kpxe ipxe/bin/undionly.kpxe
1314
mv -f ipxe/src/bin-x86_64-efi/ipxe.efi ipxe/bin/ipxe-x86_64.efi
1415
mv -f ipxe/src/bin-i386-efi/ipxe.efi ipxe/bin/ipxe-i386.efi
15-
go-bindata -o ipxe/ipxe-bin.go -pkg ipxe -nometadata -nomemcopy -prefix ipxe/bin/ ipxe/bin
16-
rm -rf ipxe/bin
1716
(cd ipxe/src && make clean)
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build
2+
3+
on: push
4+
5+
jobs:
6+
7+
x86:
8+
name: x86
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Install packages
16+
run: |
17+
sudo dpkg --add-architecture i386
18+
sudo apt update
19+
sudo apt install -y -o Acquire::Retries=50 \
20+
mtools syslinux isolinux \
21+
libc6-dev-i386 libc6-dbg:i386 valgrind
22+
- name: Build (BIOS)
23+
run: |
24+
make -j 4 -C src
25+
- name: Build (Everything)
26+
run: |
27+
make -j 4 -C src everything
28+
- name: Test
29+
run: |
30+
valgrind ./src/bin-i386-linux/tests.linux
31+
valgrind ./src/bin-x86_64-linux/tests.linux
32+
33+
arm32:
34+
name: ARM32
35+
runs-on: ubuntu-20.04
36+
steps:
37+
- name: Check out code
38+
uses: actions/checkout@v2
39+
with:
40+
fetch-depth: 0
41+
- name: Install packages
42+
run: |
43+
sudo apt update
44+
sudo apt install -y -o Acquire::Retries=50 \
45+
mtools syslinux isolinux gcc-arm-none-eabi
46+
- name: Build
47+
run: |
48+
make -j 4 -C src CROSS=arm-none-eabi- \
49+
bin-arm32-efi/intel.efi \
50+
bin-arm32-efi/intel.usb \
51+
bin-arm32-efi/intel.iso
52+
53+
arm64:
54+
name: ARM64
55+
runs-on: ubuntu-20.04
56+
steps:
57+
- name: Check out code
58+
uses: actions/checkout@v2
59+
with:
60+
fetch-depth: 0
61+
- name: Install packages
62+
run: |
63+
sudo apt update
64+
sudo apt install -y -o Acquire::Retries=50 \
65+
mtools syslinux isolinux gcc-aarch64-linux-gnu
66+
- name: Build
67+
run: |
68+
make -j 4 -C src CROSS=aarch64-linux-gnu- \
69+
bin-arm64-efi/ipxe.efi \
70+
bin-arm64-efi/ipxe.usb \
71+
bin-arm64-efi/ipxe.iso
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Coverity Scan
2+
3+
on:
4+
push:
5+
branches:
6+
- coverity_scan
7+
8+
jobs:
9+
submit:
10+
name: Submit
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v2
15+
- name: Download Coverity Scan
16+
run: |
17+
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
18+
--form project=${{ github.repository }} \
19+
--output coverity.tar.gz \
20+
https://scan.coverity.com/download/cxx/linux64
21+
mkdir -p /opt/coverity
22+
sudo tar xvzf coverity.tar.gz --strip 1 --directory /opt/coverity
23+
- name: Build via Coverity Scan
24+
run: |
25+
make -C src bin/deps
26+
/opt/coverity/bin/cov-build --dir cov-int make -C src bin/blib.a
27+
- name: Create submission
28+
run : |
29+
tar cvzf cov-int.tar.gz cov-int
30+
- name: Submit to Coverity Scan
31+
run: |
32+
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
33+
--form email=${{ secrets.COVERITY_SCAN_EMAIL }} \
34+
35+
--form version=${{ github.sha }} \
36+
--form description=${{ github.ref }} \
37+
https://scan.coverity.com/builds?project=${{ github.repository }}

third_party/ipxe/.travis.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

third_party/ipxe/COMMIT-ID

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
133f4c47baef6002b2ccb4904a035cda2303c6e5
1+
70995397e5bdfd3431e12971aa40630c7014785f

0 commit comments

Comments
 (0)