[Debian-on-mobile-maintainers] [Git][DebianOnMobile-team/mfgtools][debian/master] Generate udev 70-uuu.rules at build and ship it

Andreas Henriksson (@ah) gitlab at salsa.debian.org
Wed Mar 15 10:40:01 GMT 2023



Andreas Henriksson pushed to branch debian/master at Debian On Mobile / mfgtools


Commits:
e18b52f6 by Andreas Henriksson at 2023-03-15T11:34:42+01:00
Generate udev 70-uuu.rules at build and ship it

```
> uuu -udev >/dev/null

1: put above udev run into /etc/udev/rules.d/70-uuu.rules
	sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules"
2: update udev rule
	sudo udevadm control --reload
```

(Note: "above" is the stdout udev rules we sent to /dev/null to shorten the output.)

This commit runs the command at build-time and ships the rules file in the package
(albeit in /lib instead of /etc ofcourse).

- - - - -


1 changed file:

- debian/rules


Changes:

=====================================
debian/rules
=====================================
@@ -17,3 +17,8 @@ execute_before_dh_auto_configure:
 execute_before_dh_installman:
 	help2man --version-option='-h' --help-option='-h' --no-info --name="Freescale/NXP I.MX Chip image deploy tools" \
 		debian/uuu/usr/bin/uuu | sed 's/\x1b\[[0-9;]*m//g' > debian/uuu.1
+
+# generate udev rules
+execute_after_dh_auto_install:
+	test -e debian/uuu && mkdir -p debian/uuu/lib/udev/rules.d
+	debian/uuu/usr/bin/uuu -udev > debian/uuu/lib/udev/rules.d/70-uuu.rules 2>/dev/null



View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/mfgtools/-/commit/e18b52f68bec9dafcf4d8c439f63eec0ae7510cd

-- 
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/mfgtools/-/commit/e18b52f68bec9dafcf4d8c439f63eec0ae7510cd
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20230315/4f8e9828/attachment.htm>


More information about the Debian-on-mobile-maintainers mailing list