summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c
Commit message (Collapse)AuthorAgeFilesLines
* makedevs: Do not return error if the fifo exisitsSaul Wold2013-10-011-2/+14
| | | | | | | | | | | | | | This ensures that makedevs will not cause image creation failures when it encounters a pipe (fifo) that exists from a previous image. This handles mode changes and it will correctly fail for dangling symlinks. [YOCTO #5288] (From OE-Core rev: 3a4b0e7973bef43f16058137e64600e2f890b117) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* makedevs: rectify the exit codes and handle the invalid parameterRoy Li2013-09-301-3/+6
| | | | | | | | | | | | It is correct behaviours to output help and version information, and should return 0; When input parameter is invalid, print help information and exit. (From OE-Core rev: 7c61daa08fa51557e0e6785e738646cb5d8de91b) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* makedevs: support using user/group names in device table filesChen Qi2013-08-161-29/+178
| | | | | | | | | | | | | | | | | | | Compared to hard coding the numeric group and user ids in the device table files, the way of using user/group names is preferred. This patch adds the ability to makedevs to correctly deal with device table files with user/group names in them. To maintain backward compatibility, the way of using uid/gid is still supported. [YOCTO #1159] (From OE-Core rev: 1fcf718e3a1e50446ab61972069566e5016bc625) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* makedevs: Make count actually behave as a count for device blocksPeter Kjellerstedt2013-06-041-1/+1
| | | | | | | | | | Previously count actually behaved as end, and did not take start into account. (From OE-Core rev: 4fe2b01bfd2831b002e7138dadbc0437df6e9ed6) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* makedevs: Avoid unnecessary timestamp calculationPeter Kjellerstedt2013-05-301-2/+0
| | | | | | | (From OE-Core rev: af4b5eac7acf36444de078c294c3adc3f2763511) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* makedevs: Make the mode number readable in debug messagesPeter Kjellerstedt2013-05-301-4/+4
| | | | | | | (From OE-Core rev: 56f4adfc37d44e9626a5d157863f4b760bb516ec) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* makedevs: Correct the device number calculation for blocks of devicesPeter Kjellerstedt2013-05-301-1/+1
| | | | | | | | | | | If the increment > 1 and the start > 0 then the calculation for the minor device number was incorrect. (From OE-Core rev: 0a878426bee607a7d961ba475a7ec7e89115df35) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* makedevs: Create blocks of devices with the correct uid/gidPeter Kjellerstedt2013-05-301-2/+3
| | | | | | | | | | | | | When creating a block of devices (i.e., when count > 0), the wrong path was used with the call to chown(), effectively trying to change the owner of some (probably) non-existent file. Thus the created device nodes were always owned by root. (From OE-Core rev: e7796880164d6a37c2699a94e1c5391337c5eaa5) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Major layout change to the packages directoryRichard Purdie2010-08-271-0/+360
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>