volume_id: Adopt to new kbuild style.
Kbuild instructions for util-linux/volume_id are moved into the source files according to the new build feature. No code change. Signed-off-by: Sven-Göran Bergh <sgb@systemasis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
982e87f2fb
commit
3b45801dc6
@ -7,41 +7,3 @@
|
||||
lib-y:=
|
||||
|
||||
INSERT
|
||||
|
||||
lib-$(CONFIG_BLKID) += get_devname.o
|
||||
lib-$(CONFIG_FINDFS) += get_devname.o
|
||||
lib-$(CONFIG_FEATURE_MOUNT_LABEL) += get_devname.o
|
||||
|
||||
lib-$(CONFIG_VOLUMEID) += volume_id.o util.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_BTRFS) += btrfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_EXT) += ext.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_FAT) += fat.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_HFS) += hfs.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_HIGHPOINTRAID) += highpoint.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_ISWRAID) += isw_raid.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_LSIRAID) += lsi_raid.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_VIARAID) += via_raid.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_SILICONRAID) += silicon_raid.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_NVIDIARAID) += nvidia_raid.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_PROMISERAID) += promise_raid.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_ISO9660) += iso9660.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_JFS) += jfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_LINUXRAID) += linux_raid.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_LINUXSWAP) += linux_swap.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_LVM) += lvm.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_MAC) += mac.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_MSDOS) += msdos.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_NILFS) += nilfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_NTFS) += ntfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_EXFAT) += exfat.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_REISERFS) += reiserfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_UDF) += udf.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_UFS) += ufs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_XFS) += xfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_CRAMFS) += cramfs.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_HPFS) += hpfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_ROMFS) += romfs.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_SYSV) += sysv.o
|
||||
### lib-$(CONFIG_FEATURE_VOLUMEID_MINIX) += minix.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_LUKS) += luks.o
|
||||
lib-$(CONFIG_FEATURE_VOLUMEID_OCFS2) += ocfs2.o
|
||||
|
@ -19,6 +19,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BTRFS) += btrfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
#define BTRFS_UUID_SIZE 16
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_CRAMFS) += cramfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct cramfs_super {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXFAT) += exfat.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
#define EXFAT_SB_OFFSET 0
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXT) += ext.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
#include "bb_e2fs_defs.h"
|
||||
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_FAT) += fat.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
/* linux/msdos_fs.h says: */
|
||||
|
@ -7,6 +7,11 @@
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_BLKID) += get_devname.o
|
||||
//kbuild:lib-$(CONFIG_FINDFS) += get_devname.o
|
||||
//kbuild:lib-$(CONFIG_FEATURE_MOUNT_LABEL) += get_devname.o
|
||||
|
||||
#include <sys/mount.h> /* BLKGETSIZE64 */
|
||||
#if !defined(BLKGETSIZE64)
|
||||
# define BLKGETSIZE64 _IOR(0x12,114,size_t)
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_HFS) += hfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct hfs_finder_info{
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ISO9660) += iso9660.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
#define ISO_SUPERBLOCK_OFFSET 0x8000
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_JFS) += jfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct jfs_super_block {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXRAID) += linux_raid.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct mdp_super_block {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXSWAP) += linux_swap.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct swap_header_v1_2 {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LUKS) += luks.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
#define LUKS_MAGIC_L 6
|
||||
|
@ -19,6 +19,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NILFS) += nilfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
#define NILFS_UUID_SIZE 16
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NTFS) += ntfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct ntfs_super_block {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_OCFS2) += ocfs2.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
/* All these values are taken from ocfs2-tools's ocfs2_fs.h */
|
||||
|
@ -19,6 +19,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_REISERFS) += reiserfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct reiserfs_super_block {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ROMFS) += romfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct romfs_super {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SYSV) += sysv.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
#define SYSV_NICINOD 100
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UDF) += udf.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct volume_descriptor {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HIGHPOINTRAID) += highpoint.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct hpt37x_meta {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HPFS) += hpfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct hpfs_super {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_ISWRAID) += isw_raid.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct isw_meta {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LSIRAID) += lsi_raid.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct lsi_meta {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LVM) += lvm.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct lvm1_super_block {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MAC) += mac.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct mac_driver_desc {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MINIX) += minix.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct minix_super_block {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MSDOS) += msdos.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct msdos_partition_entry {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_NVIDIARAID) += nvidia_raid.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct nvidia_meta {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_PROMISERAID) += promise_raid.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct promise_meta {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_SILICONRAID) += silicon_raid.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct silicon_meta {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_UFS) += ufs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct ufs_super_block {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_VIARAID) += via_raid.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct via_meta {
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_VOLUMEID) += volume_id.o util.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
|
||||
|
@ -18,6 +18,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_XFS) += xfs.o
|
||||
|
||||
#include "volume_id_internal.h"
|
||||
|
||||
struct xfs_super_block {
|
||||
|
Loading…
Reference in New Issue
Block a user