-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
#ifdef CONFIG_RAMFS_CPIO | ||
.section .ramfs | ||
.incbin CONFIG_RAMFS_CPIO | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* @file | ||
* @brief Extended cpio format from POSIX.1. | ||
* | ||
* @date 27.09.10 | ||
* @author Nikolay Korotky | ||
*/ | ||
#ifndef _CPIO_H | ||
#define _CPIO_H | ||
|
||
/* A cpio archive consists of a sequence of files. | ||
Each file has a 76 byte header, | ||
a variable length, NUL terminated filename, | ||
and variable length file data. | ||
A header for a filename "TRAILER!!!" indicates the end of the archive. */ | ||
|
||
/* New ASCII Format */ | ||
struct cpio_newc_header { | ||
char c_magic[6]; /* must be "070701" */ | ||
char c_ino[8]; | ||
char c_mode[8]; | ||
char c_uid[8]; | ||
char c_gid[8]; | ||
char c_nlink[8]; | ||
char c_mtime[8]; | ||
char c_filesize[8]; /* must be 0 for FIFOs and directories */ | ||
char c_devmajor[8]; | ||
char c_devminor[8]; | ||
char c_rdevmajor[8]; | ||
char c_rdevminor[8]; | ||
char c_namesize[8]; | ||
char c_check[8]; | ||
}; | ||
|
||
/* Value for the field `c_magic'. */ | ||
#define MAGIC "070701" | ||
|
||
/* Values for c_mode, OR'd together: */ | ||
|
||
#define C_IRUSR 000400 | ||
#define C_IWUSR 000200 | ||
#define C_IXUSR 000100 | ||
#define C_IRGRP 000040 | ||
#define C_IWGRP 000020 | ||
#define C_IXGRP 000010 | ||
#define C_IROTH 000004 | ||
#define C_IWOTH 000002 | ||
#define C_IXOTH 000001 | ||
|
||
#define C_ISUID 004000 | ||
#define C_ISGID 002000 | ||
#define C_ISVTX 001000 | ||
|
||
#define C_ISBLK 060000 | ||
#define C_ISCHR 020000 | ||
#define C_ISDIR 040000 | ||
#define C_ISFIFO 010000 | ||
#define C_ISSOCK 0140000 | ||
#define C_ISLNK 0120000 | ||
#define C_ISCTG 0110000 | ||
#define C_ISREG 0100000 | ||
|
||
#endif /* _CPIO_H */ |