Commit fbc74e0f authored by Guido Gunther's avatar Guido Gunther
Browse files

Don't install flashing scripts

These were split out to a separate repo. Keep the scripts around but
don't install them in the package until all the docs got updated.

See #40
parent 44dcf9da
......@@ -3,55 +3,5 @@ include:
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-byzantium-jobs.yml'
stages:
- test
- package
- test-package
variables:
FLASHDEPS: python3
python3-coloredlogs
python3-jenkins
python3-requests
python3-tqdm
python3-yaml
IMAGE: pureos/byzantium
.tags: &tags
tags:
- librem5
test:download:deb:
<<: *tags
stage: test
image: $IMAGE
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install $FLASHDEPS
- rm -rf output
script:
- scripts/librem5-flash-image --board librem5r4 --variant plain --skip-flash --skip-cleanup --dir=download/
- ls -l download/librem5*.img download/flash_librem5*.lst download/u-boot-librem5*.imx
- mkdir -p output/
- cp download/flash_*.lst output/
- rm -rf download
artifacts:
paths:
- output/
test:download:pip:
<<: *tags
stage: test
image: $IMAGE
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install virtualenv python3-pip
script:
- virtualenv --python=python3 test-download
- source test-download/bin/activate
- pip install -r requirements.txt
- python3 scripts/librem5-flash-image --board librem5r4 --variant plain --skip-flash --skip-cleanup --dir=download/
- ls -l download/librem5*.img download/flash_librem5*.lst download/u-boot-librem5*.imx
- rm -rf download
......@@ -6,7 +6,6 @@ check:
flake8
shellcheck test_scripts/librem5-check
shellcheck usr/share/librem5/l5-shipme
$(MAKE) -C scripts/
install:
mkdir -p $(DESTDIR)/etc/modules-load.d/
......
debian/librem5-flash-image.1
scripts/librem5*-flash-image /usr/bin/
scripts/librem5-usbnet /usr/bin/
SUBSYSTEM!="usb", GOTO="librem5_devkit_rules_end"
# Devkit USB flash
ATTR{idVendor}=="1fc9", ATTR{idProduct}=="012b", GROUP+="plugdev", TAG+="uaccess"
ATTR{idVendor}=="0525", ATTR{idProduct}=="a4a5", GROUP+="plugdev", TAG+="uaccess"
ATTR{idVendor}=="0525", ATTR{idProduct}=="b4a4", GROUP+="plugdev", TAG+="uaccess"
ATTR{idVendor}=="316d", ATTR{idProduct}=="4c05", GROUP+="plugdev", TAG+="uaccess"
LABEL="librem5_devkit_rules_end"
......@@ -5,9 +5,6 @@ include /usr/share/dpkg/default.mk
%:
dh $@
override_dh_installudev:
dh_installudev --name=librem5
override_dh_installsystemd:
dh_installsystemd --no-start --name=resize_rootfs
......@@ -18,9 +15,3 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
else
@echo "Checks disabled via DEB_BUILD_OPTIONS"
endif
override_dh_installman:
help2man -N --version-string=$(DEB_VERSION_UPSTREAM) \
--version-string=0.0.12 scripts/librem5-flash-image \
> debian/tmp/librem5-flash-image.1
dh_installman
check:
flake8 librem5-devkit-flash-image
python3 -m doctest librem5_flash_image.py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment