Skip to content

Commit

Permalink
CircleCI & coreboot config: fix merge conflict rebasing on master
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaurion committed Oct 16, 2020
1 parent 73e62fd commit be7fac4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 48 deletions.
57 changes: 20 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: git reset
command: |
git reset --hard "$CIRCLE_SHA1" \
- run:
name: Creating all modules and patches digest
command: |
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
# command: |
# ./build/make-4.2.1/make \
# CROSS=/cross/bin/x86_64-linux-musl- \
# --load 2 \
# CPUS=4 \
# V=1 \
# BOARD=qemu-linuxboot \
#
Expand All @@ -63,8 +63,7 @@ jobs:
name: kgpe-d16_workstation
command: |
rm -rf build/kgpe-d16_workstation/* build/log/* && \
make --load 2 BOARD=kgpe-d16_workstation || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
make CPUS=4 V=1 BOARD=kgpe-d16_workstation || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput kgpe-d16_workstation hashes
Expand All @@ -81,8 +80,7 @@ jobs:
name: kgpe-d16_workstation-usb_keyboard
command: |
rm -rf build/kgpe-d16_workstation-usb_keyboard/* build/log/* && \
make --load 2 BOARD=kgpe-d16_workstation-usb_keyboard) || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
make CPUS=4 V=1 BOARD=kgpe-d16_workstation-usb_keyboard) || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput kgpe-d16_workstation-usb_keyboard hashes
Expand All @@ -99,8 +97,7 @@ jobs:
name: kgpe-d16_server
command: |
rm -rf build/kgpe-d16_server/* build/log/* && \
make --load 2 BOARD=kgpe-d16_server || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
make CPUS=4 V=1 BOARD=kgpe-d16_server || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput kgpe-d16_server hashes
Expand All @@ -117,8 +114,7 @@ jobs:
name: kgpe-d16_server-whiptail
command: |
rm -rf build/kgpe-d16_server-whiptail/* build/log/* && /
make --load 2 BOARD=kgpe-d16_server-whiptail || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
make CPUS=4 V=1 BOARD=kgpe-d16_server-whiptail || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput kgpe-d16_server-whiptail hashes
Expand All @@ -132,28 +128,25 @@ jobs:
path: build/kgpe-d16_server-whiptail

- run:
name: librem_mini-NoTPM
name: librem_mini
command: |
rm -rf build/librem_mini-NoTPM/* build/log/* && /
make --load 2 BOARD=librem_mini-NoTPM || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
rm -rf build/librem_mini/* build/log/* && make CPUS=4 V=1 BOARD=librem_mini || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput librem_mini-NoTPM hashes
name: Ouput librem_mini hashes
command: |
cat build/librem_mini-NoTPM/hashes.txt \
cat build/librem_mini/hashes.txt \
- run:
name: Archiving build logs for librem_mini-NoTPM
name: Archiving build logs for librem_mini
command: |
tar zcvf build/librem_mini-NoTPM/logs.tar.gz build/log/*
tar zcvf build/librem_mini/logs.tar.gz build/log/*
- store-artifacts:
path: build/librem_mini-NoTPM
path: build/librem_mini

- run:
name: x230-flash
command: |
rm -rf build/x230-flash/* build/log/* && /
make --load 2 BOARD=x230-flash || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
rm -rf build/x230-flash/* build/log/* && make CPUS=4 V=1 BOARD=x230-flash || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput x230-flash hashes
Expand All @@ -169,9 +162,7 @@ jobs:
- run:
name: t430-flash
command: |
rm -rf build/t430-flash/* build/log/* && /
make --load 2 BOARD=t430-flash || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
rm -rf build/t430-flash/* build/log/* && make CPUS=4 V=1 BOARD=t430-flash || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput t430-flash hashes
Expand All @@ -187,9 +178,7 @@ jobs:
- run:
name: t430
command: |
rm -rf build/t430/* build/log/* && /
make --load 2 BOARD=t430 || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
rm -rf build/t430/* build/log/* && make CPUS=4 V=1 BOARD=t430 || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput t430 hashes
Expand All @@ -205,9 +194,7 @@ jobs:
- run:
name: x230
command: |
rm -rf build/x230/* build/log/* && /
make --load 2 BOARD=x230 || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
rm -rf build/x230/* build/log/* && make CPUS=4 V=1 BOARD=x230 || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput x230 hashes
Expand All @@ -223,9 +210,7 @@ jobs:
- run:
name: x230-hotp-verification
command: |
rm -rf build/x230-hotp-verification/* build/log/* && /
make --load 2 BOARD=x230-hotp-verification || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
rm -rf build/x230-hotp-verification/* build/log/* && make CPUS=4 V=1 BOARD=x230-hotp-verification || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput x230-hotp-verification hashes
Expand All @@ -241,9 +226,7 @@ jobs:
- run:
name: qemu-coreboot
command: |
rm -rf build/qemu-coreboot/* build/log/* && /
make --load 2 BOARD=qemu-coreboot || \
EXIT_CODE=$? && find ./ -type f -name "*.log" -type f -mmin -1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d ' ' -f5- | while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit $EXIT_CODE \
rm -rf build/qemu-coreboot/* build/log/* && make CPUS=4 V=1 BOARD=qemu-coreboot || (find ./build/ -name "*.log" -type f -mmin -1|while read log; do echo ""; echo '==>' "$log" '<=='; echo ""; cat $log;done; exit 1) \
no_output_timeout: 3h
- run:
name: Output qemu-coreboot hashes
Expand Down
13 changes: 2 additions & 11 deletions modules/coreboot
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,9 @@ coreboot_target := \
coreboot_output := coreboot.rom
coreboot_depend += linux initrd $(musl_dep)

ifeq "$(CONFIG_COREBOOT_VERSION)" "4.8.1"
COREBOOT_TOOLCHAIN=""
$(COREBOOT_TOOLCHAIN):
else
COREBOOT_TOOLCHAIN="$(build)/$(coreboot_base_dir)/.xcompile"
$(COREBOOT_TOOLCHAIN): $(build)/$(coreboot_base_dir)/.canary
$(MAKE) -C "$(build)/$(coreboot_base_dir)" CPUS=$$(expr $$(getconf PAGESIZE) \* $$(getconf _PHYS_PAGES) / 1024 / 1024 / 1024) crossgcc-i386
endif

$(build)/$(coreboot_dir)/.configured: $(COREBOOT_IASL) $(COREBOOT_TOOLCHAIN)
$(build)/$(coreboot_dir)/.configured: $(COREBOOT_IASL)
$(COREBOOT_IASL): $(build)/$(coreboot_base_dir)/.canary
$(MAKE) -C "$(build)/$(coreboot_base_dir)" CPUS=$$(expr $$(getconf PAGESIZE) \* $$(getconf _PHYS_PAGES) / 1024 / 1024 / 1024) iasl
$(MAKE) -C "$(build)/$(coreboot_base_dir)" CPUS=$$CPUS iasl

# Force a rebuild if the inputs have changed
$(build)/$(coreboot_dir)/.build: \
Expand Down

0 comments on commit be7fac4

Please sign in to comment.