Commit Graph

7 Commits

Author SHA1 Message Date
Julian Lunz
8876b6751e Fix makedevs to allow longer path names
Makedevs path name is currently limited to 40, changed it to
PATH_MAX 4096 from linux/include/linux/limits.h
Signed-off-by: Julian Lunz <git@jlunz.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-04-08 19:46:52 +02:00
Peter Korsgaard
95af4fbfa5 makedevs: remove compiler warning about used-but-set
Closes #4171

Based on patch by Hector Oron <hector.oron@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-10-09 23:26:39 +02:00
Javier Viguera
99ead3c2ea makedevs: minor fix to command's help
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-05-25 17:49:15 +02:00
Peter Korsgaard
707dc469aa makedevs: don't call /bin/sync after creating nodes
Closes #3475

There's no real reason to sync after creating the device nodes,
and it slows down the file system image creating quite a lot on
busy systems, so get rid of it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-03-12 22:27:06 +01:00
Thomas De Schampheleire
a85971a68b makedevs: fix cases where (start != 0)
The makedevs script did not always generate the requested set of device names / minor number series.
* If start != 0, then requesting (count) devices would generate only (count - start)
* If start != 0 && increment != 1, then requesting minors starting with (minor) would generate minors starting with (minor + (start * (increment - 1)))

This patch fixes the code and updates the usage text with extra examples.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-02-23 23:37:36 +01:00
Matt Fleming
7879a4ba3f makedevs: Add support for 16-bit major/minor numbers
Closes #2647

[Peter: Adjust for the real 12bit majors/20bit minors supported by Linux]
Signed-off-by: Matt Fleming <matthew.fleming@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-01-14 22:50:39 +01:00
Thomas Petazzoni
5faae48690 makedevs: move to package/
Since target/ doesn't contain any .mk file in subdirectories, also
remove the include in target/Makefile.in.
2010-04-19 22:46:37 +02:00