diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/makedevs/makedevs-1.0.0/makedevs.c | 8 | ||||
-rw-r--r-- | meta/packages/makedevs/makedevs-native_1.0.0.bb | 2 | ||||
-rw-r--r-- | meta/packages/makedevs/makedevs_1.0.0.bb | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/meta/packages/makedevs/makedevs-1.0.0/makedevs.c b/meta/packages/makedevs/makedevs-1.0.0/makedevs.c index a9bf8e782..14569c61a 100644 --- a/meta/packages/makedevs/makedevs-1.0.0/makedevs.c +++ b/meta/packages/makedevs/makedevs-1.0.0/makedevs.c @@ -106,6 +106,7 @@ static char *xstrdup(const char *s) static void add_new_directory(char *name, char *path, unsigned long uid, unsigned long gid, unsigned long mode) { + mkdir(path,mode); // printf("Directory: %s %s UID: %ld GID %ld MODE: %ld\n", path, name, uid, gid, mode); } @@ -136,6 +137,13 @@ static void add_new_device(char *name, char *path, unsigned long uid, static void add_new_file(char *name, char *path, unsigned long uid, unsigned long gid, unsigned long mode) { + int fd = open(path,O_CREAT | O_WRONLY, mode); + if(fd<0) + { + error_msg_and_die("%s: file can not be created!", path); + } else { + close(fd); + } // printf("File: %s %s UID: %ld GID: %ld MODE: %ld\n", // path, name, gid, uid, mode); } diff --git a/meta/packages/makedevs/makedevs-native_1.0.0.bb b/meta/packages/makedevs/makedevs-native_1.0.0.bb index 28544e12f..004a71374 100644 --- a/meta/packages/makedevs/makedevs-native_1.0.0.bb +++ b/meta/packages/makedevs/makedevs-native_1.0.0.bb @@ -1,6 +1,6 @@ SECTION = "base" require makedevs_${PV}.bb -inherit native +inherit native FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/makedevs-${PV}" diff --git a/meta/packages/makedevs/makedevs_1.0.0.bb b/meta/packages/makedevs/makedevs_1.0.0.bb index f6c1ffbfa..422d91108 100644 --- a/meta/packages/makedevs/makedevs_1.0.0.bb +++ b/meta/packages/makedevs/makedevs_1.0.0.bb @@ -4,7 +4,7 @@ SECTION = "base" PRIORITY = "required" SRC_URI = "file://makedevs.c" S = "${WORKDIR}/makedevs-${PV}" -PR = "r2" +PR = "r3" do_configure() { install -m 0644 ${WORKDIR}/makedevs.c ${S}/ |