mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
Makefile: Add basic helpers permitting to move boards from/to UNTESTED_
Adds two golbal helpers in Makefile: - board.move_untested_to_tested - board.move_tested_to_untested Which can be called by: - make BOARD=UNTESTED_t420-maximized board.move_untested_to_tested - make BOARD=x230-legacy board.move_tested_to_untested Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
129a772455
commit
e81f59eac2
22
Makefile
22
Makefile
@ -728,6 +728,28 @@ modules.clean:
|
|||||||
rm -f "build/${CONFIG_TARGET_ARCH}/$$dir/.configured" ; \
|
rm -f "build/${CONFIG_TARGET_ARCH}/$$dir/.configured" ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
board.move_untested_to_tested:
|
||||||
|
@echo "NEW_BOARD variable will remove UNTESTED_ prefix from $(BOARD)"
|
||||||
|
@NEW_BOARD=$$(echo $(BOARD) | sed 's/^UNTESTED_//'); \
|
||||||
|
echo "Renaming boards/$$BOARD/$$BOARD.config to boards/$$BOARD/$$NEW_BOARD.config"; \
|
||||||
|
mv boards/$$BOARD/$$BOARD.config boards/$$BOARD/$$NEW_BOARD.config; \
|
||||||
|
echo "Renaming boards/$$BOARD to boards/$$NEW_BOARD"; \
|
||||||
|
rm -rf boards/$$NEW_BOARD; \
|
||||||
|
mv boards/$$BOARD boards/$$NEW_BOARD; \
|
||||||
|
echo "Replacing $$BOARD with $$NEW_BOARD in .circleci/config.yml"; \
|
||||||
|
sed -i "s/$$BOARD/$$NEW_BOARD/g" .circleci/config.yml
|
||||||
|
|
||||||
|
board.move_tested_to_untested:
|
||||||
|
@echo "NEW_BOARD variable will add UNTESTED_ prefix to $(BOARD)"
|
||||||
|
@NEW_BOARD=UNTESTED_$(BOARD); \
|
||||||
|
rm -rf boards/$${NEW_BOARD}; \
|
||||||
|
echo "Renaming boards/$(BOARD)/$(BOARD).config to boards/$(BOARD)/$${NEW_BOARD}.config"; \
|
||||||
|
mv boards/$(BOARD)/$(BOARD).config boards/$(BOARD)/$${NEW_BOARD}.config; \
|
||||||
|
echo "Renaming boards/$(BOARD) to boards/$${NEW_BOARD}"; \
|
||||||
|
mv boards/$(BOARD) boards/$${NEW_BOARD}; \
|
||||||
|
echo "Replacing $(BOARD) with $${NEW_BOARD} in .circleci/config.yml"; \
|
||||||
|
sed -i "s/$(BOARD)/$${NEW_BOARD}/g" .circleci/config.yml
|
||||||
|
|
||||||
# Inject a GPG key into the image - this is most useful when testing in qemu,
|
# Inject a GPG key into the image - this is most useful when testing in qemu,
|
||||||
# since we can't reflash the firmware in qemu to update the keychain. Instead,
|
# since we can't reflash the firmware in qemu to update the keychain. Instead,
|
||||||
# inject the public key ahead of time. Specify the location of the key with
|
# inject the public key ahead of time. Specify the location of the key with
|
||||||
|
Loading…
Reference in New Issue
Block a user