2023-12-22 05:05:13 +00:00
|
|
|
CONTAINER_NAME := linuxboot-mainboards
|
|
|
|
|
2020-01-06 17:46:01 +00:00
|
|
|
all:
|
2020-05-06 15:23:44 +00:00
|
|
|
echo pick one of debian-packages or repos
|
2020-01-06 17:46:01 +00:00
|
|
|
|
|
|
|
debian-packages:
|
2020-01-30 16:20:11 +00:00
|
|
|
sudo apt-get install bison flex zlib1g-dev golang build-essential git gcc isc-dhcp-server tftpd-hpa minicom flashrom
|
|
|
|
echo The next command may get an error and that is ok if you have qemu-system-x86_64
|
|
|
|
sudo apt-get install qemu-system-x86
|
2020-05-06 15:22:10 +00:00
|
|
|
|
|
|
|
getmecleaner:
|
2020-05-06 15:23:44 +00:00
|
|
|
go get -u github.com/u-root/u-root
|
|
|
|
go get -u github.com/u-root/cpu/...
|
2022-01-11 00:29:20 +00:00
|
|
|
git clone https://github.com/corna/me_cleaner
|
2020-05-06 15:22:10 +00:00
|
|
|
@echo Now add $(PWD)/me_cleaner to PATH
|
2023-12-22 05:05:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
docker-build: Dockerfile
|
|
|
|
docker build -t $(CONTAINER_NAME) -f $< .
|
|
|
|
|
|
|
|
docker-run-aeeon-up: docker-build
|
|
|
|
docker run --rm -v "$(shell pwd)/aeeon/up":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'
|
|
|
|
docker-run-ampere-jade: docker-build
|
|
|
|
docker run --rm -v "$(shell pwd)/ampere/jade":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'
|
|
|
|
|
|
|
|
docker-run-qemu-x86-64: docker-build
|
2024-10-24 06:41:54 +00:00
|
|
|
docker run --rm -v "$(shell pwd)/qemu/x86_64":/$(CONTAINER_NAME) $(CONTAINER_NAME) 'make fetch flashkernel'
|