diff options
| author | Adrian Dudau <adrian.dudau@enea.com> | 2016-02-05 13:35:34 +0100 |
|---|---|---|
| committer | Nora Björklund <nora.bjorklund@enea.com> | 2016-02-11 13:15:26 +0100 |
| commit | b36463c35153f5efe89a1e03004f78d161998a8c (patch) | |
| tree | 38790a056afd755367fbe00308848fe1825d80ba /recipes-kernel | |
| parent | b878cf381de0a0d158f1e97cf8726ea1756fd2fa (diff) | |
| download | meta-el-common-b36463c35153f5efe89a1e03004f78d161998a8c.tar.gz | |
remove kernel config fragments
These fragments are common to all architectures and are being moved to
meta-enea-bsp-base.
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Nora Björklund <nora.bjorklund@enea.com>
Diffstat (limited to 'recipes-kernel')
52 files changed, 0 insertions, 557 deletions
diff --git a/recipes-kernel/linux/enea-common.inc b/recipes-kernel/linux/enea-common.inc deleted file mode 100644 index 192100c..0000000 --- a/recipes-kernel/linux/enea-common.inc +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
| 2 | |||
| 3 | def format_file_uri(d): | ||
| 4 | substrlist = d.getVar("ENEA_KERNEL_FRAGMENTS").split() | ||
| 5 | ostr = '' | ||
| 6 | for substr in substrlist: | ||
| 7 | ostr = ostr + " file://" + substr | ||
| 8 | return ostr.lstrip() | ||
| 9 | |||
| 10 | ENEA_KERNEL_FRAGMENTS ??= "" | ||
| 11 | |||
| 12 | SRC_URI += "${@format_file_uri(d)}" | ||
diff --git a/recipes-kernel/linux/files/cfg/00001-embedded.cfg b/recipes-kernel/linux/files/cfg/00001-embedded.cfg deleted file mode 100644 index 2f0e6bf..0000000 --- a/recipes-kernel/linux/files/cfg/00001-embedded.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_EMBEDDED=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00002-root_nfs.cfg b/recipes-kernel/linux/files/cfg/00002-root_nfs.cfg deleted file mode 100644 index f8d8748..0000000 --- a/recipes-kernel/linux/files/cfg/00002-root_nfs.cfg +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | CONFIG_NETWORK_FILESYSTEMS=y | ||
| 2 | CONFIG_NFS_USE_KERNEL_DNS=y | ||
| 3 | CONFIG_ROOT_NFS=y | ||
| 4 | CONFIG_NFS_FS=y | ||
| 5 | CONFIG_NFS_V3=y | ||
| 6 | CONFIG_NFS_V4=y | ||
| 7 | CONFIG_NFSD=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00003-fuse.cfg b/recipes-kernel/linux/files/cfg/00003-fuse.cfg deleted file mode 100644 index 43e95f2..0000000 --- a/recipes-kernel/linux/files/cfg/00003-fuse.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_FUSE_FS=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00004-systemtap.cfg b/recipes-kernel/linux/files/cfg/00004-systemtap.cfg deleted file mode 100644 index 88c278c..0000000 --- a/recipes-kernel/linux/files/cfg/00004-systemtap.cfg +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | CONFIG_DEBUG_INFO=y | ||
| 2 | CONFIG_KPROBES=y | ||
| 3 | CONFIG_RELAY=y | ||
| 4 | CONFIG_DEBUG_FS=y | ||
| 5 | CONFIG_MODULES=y | ||
| 6 | CONFIG_MODULE_UNLOAD=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00005-pramfs.cfg b/recipes-kernel/linux/files/cfg/00005-pramfs.cfg deleted file mode 100644 index 21aabc1..0000000 --- a/recipes-kernel/linux/files/cfg/00005-pramfs.cfg +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | CONFIG_MISC_FILESYSTEMS=y | ||
| 2 | CONFIG_PRAMFS=y | ||
| 3 | CONFIG_PRAMFS_XATTR=y | ||
| 4 | CONFIG_PRAMFS_TEST_MODULE=m | ||
diff --git a/recipes-kernel/linux/files/cfg/00006-with_modules.cfg b/recipes-kernel/linux/files/cfg/00006-with_modules.cfg deleted file mode 100644 index f4b3ae2..0000000 --- a/recipes-kernel/linux/files/cfg/00006-with_modules.cfg +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | CONFIG_MODULES=y | ||
| 2 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
| 3 | CONFIG_MODULE_UNLOAD=y | ||
| 4 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
| 5 | CONFIG_MODVERSIONS=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00007-oprofile.cfg b/recipes-kernel/linux/files/cfg/00007-oprofile.cfg deleted file mode 100644 index 959e94b..0000000 --- a/recipes-kernel/linux/files/cfg/00007-oprofile.cfg +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | CONFIG_PROFILING=y | ||
| 2 | CONFIG_OPROFILE=m | ||
| 3 | CONFIG_PROFILE_ALL_BRANCHES=y | ||
| 4 | CONFIG_OPROFILE_NMI_TIMER=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00008-uio_m.cfg b/recipes-kernel/linux/files/cfg/00008-uio_m.cfg deleted file mode 100644 index d82eee4..0000000 --- a/recipes-kernel/linux/files/cfg/00008-uio_m.cfg +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | CONFIG_UIO=m | ||
| 2 | CONFIG_UIO_PDRV=m | ||
| 3 | CONFIG_UIO_PDRV_GENIRQ=m | ||
diff --git a/recipes-kernel/linux/files/cfg/00009-e500mc_debug.cfg b/recipes-kernel/linux/files/cfg/00009-e500mc_debug.cfg deleted file mode 100644 index eaddbaf..0000000 --- a/recipes-kernel/linux/files/cfg/00009-e500mc_debug.cfg +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | CONFIG_FSL_EMB_PERFMON=y | ||
| 2 | CONFIG_FSL_EMB_PERF_EVENT=y | ||
| 3 | CONFIG_FSL_EMB_PERF_EVENT_E500=y | ||
| 4 | |||
| 5 | CONFIG_PPC_OF=y | ||
| 6 | CONFIG_PPC_UDBG_16550=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00010-pramfs-bsc913x.cfg b/recipes-kernel/linux/files/cfg/00010-pramfs-bsc913x.cfg deleted file mode 100644 index 1476224..0000000 --- a/recipes-kernel/linux/files/cfg/00010-pramfs-bsc913x.cfg +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | CONFIG_MISC_FILESYSTEMS=y | ||
| 2 | CONFIG_PRAMFS=y | ||
| 3 | CONFIG_PRAMFS_TEST=y | ||
| 4 | CONFIG_TEST_MODULE=m | ||
| 5 | |||
diff --git a/recipes-kernel/linux/files/cfg/00012-preempt.cfg b/recipes-kernel/linux/files/cfg/00012-preempt.cfg deleted file mode 100644 index 43fd0bd..0000000 --- a/recipes-kernel/linux/files/cfg/00012-preempt.cfg +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | CONFIG_GENERIC_LOCKBREAK=y | ||
| 2 | CONFIG_TREE_PREEMPT_RCU=y | ||
| 3 | CONFIG_PREEMPT_RCU=y | ||
| 4 | CONFIG_UNINLINE_SPIN_UNLOCK=y | ||
| 5 | CONFIG_PREEMPT=y | ||
| 6 | CONFIG_PREEMPT__LL=y | ||
| 7 | CONFIG_PREEMPT_COUNT=y | ||
| 8 | CONFIG_DEBUG_PREEMPT=y | ||
| 9 | CONFIG_RCU_CPU_STALL_VERBOSE=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00013-localversion.cfg b/recipes-kernel/linux/files/cfg/00013-localversion.cfg deleted file mode 100644 index 71481b4..0000000 --- a/recipes-kernel/linux/files/cfg/00013-localversion.cfg +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | CONFIG_LOCALVERSION_AUTO=n | ||
| 2 | CONFIG_DEFAULT_HOSTNAME="(none)" | ||
diff --git a/recipes-kernel/linux/files/cfg/00014-kgdb.cfg b/recipes-kernel/linux/files/cfg/00014-kgdb.cfg deleted file mode 100644 index f23cfe3..0000000 --- a/recipes-kernel/linux/files/cfg/00014-kgdb.cfg +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | #depends | ||
| 2 | CONFIG_DEBUG_KERNEL=y | ||
| 3 | CONFIG_EXPERIMENTAL=y | ||
| 4 | |||
| 5 | #configs | ||
| 6 | CONFIG_KGDB=y | ||
| 7 | CONFIG_KGDB_SERIAL_CONSOLE=y | ||
| 8 | CONFIG_KGDB_KDB=y | ||
| 9 | CONFIG_MAGIC_SYSRQ=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00015-uio.cfg b/recipes-kernel/linux/files/cfg/00015-uio.cfg deleted file mode 100644 index b26593e..0000000 --- a/recipes-kernel/linux/files/cfg/00015-uio.cfg +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | CONFIG_UIO=y | ||
| 2 | CONFIG_UIO_PDRV=y | ||
| 3 | CONFIG_UIO_PDRV_GENIRQ=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00016-largefilessupport.cfg b/recipes-kernel/linux/files/cfg/00016-largefilessupport.cfg deleted file mode 100644 index b3fae70..0000000 --- a/recipes-kernel/linux/files/cfg/00016-largefilessupport.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_LBDAF=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00017-preempt_keystone.cfg b/recipes-kernel/linux/files/cfg/00017-preempt_keystone.cfg deleted file mode 100644 index 89aea43..0000000 --- a/recipes-kernel/linux/files/cfg/00017-preempt_keystone.cfg +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | CONFIG_TREE_PREEMPT_RCU=y | ||
| 2 | CONFIG_PREEMPT_RCU=y | ||
| 3 | CONFIG_UNINLINE_SPIN_UNLOCK=y | ||
| 4 | CONFIG_PREEMPT=y | ||
| 5 | CONFIG_PREEMPT_COUNT=y | ||
| 6 | CONFIG_DEBUG_PREEMPT=y | ||
| 7 | CONFIG_RCU_CPU_STALL_VERBOSE=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00018-rt.cfg b/recipes-kernel/linux/files/cfg/00018-rt.cfg deleted file mode 100644 index a15c930..0000000 --- a/recipes-kernel/linux/files/cfg/00018-rt.cfg +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | CONFIG_PREEMPT_RT_FULL=y | ||
| 2 | CONFIG_HZ_1000=y | ||
| 3 | CONFIG_HZ=1000 | ||
diff --git a/recipes-kernel/linux/files/cfg/00019-i2c.cfg b/recipes-kernel/linux/files/cfg/00019-i2c.cfg deleted file mode 100644 index 8dbcc3c..0000000 --- a/recipes-kernel/linux/files/cfg/00019-i2c.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_I2C_CHARDEV=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00021-bootlogd.cfg b/recipes-kernel/linux/files/cfg/00021-bootlogd.cfg deleted file mode 100644 index 0d83d11..0000000 --- a/recipes-kernel/linux/files/cfg/00021-bootlogd.cfg +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | CONFIG_LEGACY_PTYS=y | ||
| 2 | CONFIG_LEGACY_PTY_COUNT=256 | ||
diff --git a/recipes-kernel/linux/files/cfg/00022-mtd_tests.cfg b/recipes-kernel/linux/files/cfg/00022-mtd_tests.cfg deleted file mode 100644 index 1477bd7..0000000 --- a/recipes-kernel/linux/files/cfg/00022-mtd_tests.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_MTD_TESTS=m | ||
diff --git a/recipes-kernel/linux/files/cfg/00023-ikconfig.cfg b/recipes-kernel/linux/files/cfg/00023-ikconfig.cfg deleted file mode 100644 index 9e7666c..0000000 --- a/recipes-kernel/linux/files/cfg/00023-ikconfig.cfg +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | CONFIG_IKCONFIG=y | ||
| 2 | CONFIG_IKCONFIG_PROC=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00024-preempt_romley-ivb.cfg b/recipes-kernel/linux/files/cfg/00024-preempt_romley-ivb.cfg deleted file mode 100644 index c9b47ac..0000000 --- a/recipes-kernel/linux/files/cfg/00024-preempt_romley-ivb.cfg +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | CONFIG_TREE_PREEMPT_RCU=y | ||
| 2 | CONFIG_PREEMPT_RCU=y | ||
| 3 | CONFIG_RCU_STALL_COMMON=y | ||
| 4 | CONFIG_UNINLINE_SPIN_UNLOCK=y | ||
| 5 | CONFIG_PREEMPT=y | ||
| 6 | CONFIG_PREEMPT_COUNT=y | ||
| 7 | CONFIG_DEBUG_PREEMPT=y | ||
| 8 | CONFIG_RCU_CPU_STALL_VERBOSE=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00025-powertop.cfg b/recipes-kernel/linux/files/cfg/00025-powertop.cfg deleted file mode 100644 index 655c101..0000000 --- a/recipes-kernel/linux/files/cfg/00025-powertop.cfg +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | CONFIG_EXPERT=y | ||
| 2 | CONFIG_PROC_FS=y | ||
| 3 | CONFIG_DEBUG_FS=y | ||
| 4 | CONFIG_NO_HZ=y | ||
| 5 | CONFIG_HIGH_RES_TIMERS=y | ||
| 6 | CONFIG_HPET_TIMER=y | ||
| 7 | CONFIG_CPU_FREQ=y | ||
| 8 | CONFIG_CPU_FREQ_GOV_ONDEMAND=y | ||
| 9 | CONFIG_TIMER_STATS=y | ||
| 10 | CONFIG_PERF_EVENTS=y | ||
| 11 | CONFIG_TRACEPOINTS=y | ||
| 12 | CONFIG_TRACING=y | ||
| 13 | CONFIG_X86_MSR=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00026-ltp.cfg b/recipes-kernel/linux/files/cfg/00026-ltp.cfg deleted file mode 100644 index e36a9c2..0000000 --- a/recipes-kernel/linux/files/cfg/00026-ltp.cfg +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | CONFIG_TUN=y | ||
| 2 | CONFIG_KSM=y | ||
| 3 | CONFIG_NUMA=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00027-lttng.cfg b/recipes-kernel/linux/files/cfg/00027-lttng.cfg deleted file mode 100644 index 1334194..0000000 --- a/recipes-kernel/linux/files/cfg/00027-lttng.cfg +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | CONFIG_MODULES=y | ||
| 2 | CONFIG_KALLSYMS=y | ||
| 3 | CONFIG_HIGH_RES_TIMERS=y | ||
| 4 | CONFIG_TRACEPOINTS=y | ||
| 5 | CONFIG_FTRACE=y | ||
| 6 | CONFIG_PERF_EVENTS=y | ||
| 7 | CONFIG_EVENT_TRACING=y | ||
| 8 | CONFIG_KPROBES=y | ||
| 9 | CONFIG_KRETPROBES=y | ||
| 10 | CONFIG_FUNCTION_TRACER=y | ||
| 11 | CONFIG_FUNCTION_GRAPH_TRACER=y | ||
| 12 | CONFIG_IRQSOFF_TRACER=y | ||
| 13 | CONFIG_PREEMPT_TRACER=y | ||
| 14 | CONFIG_SCHED_TRACER=y | ||
| 15 | CONFIG_NOP_TRACER=y | ||
| 16 | CONFIG_CONTEXT_SWITCH_TRACER=y | ||
| 17 | CONFIG_GENERIC_TRACER=y | ||
| 18 | CONFIG_TRACER_MAX_TRACE=y | ||
| 19 | CONFIG_TRACER_SNAPSHOT=y | ||
| 20 | CONFIG_STACK_TRACER=n | ||
diff --git a/recipes-kernel/linux/files/cfg/00028-perf.cfg b/recipes-kernel/linux/files/cfg/00028-perf.cfg deleted file mode 100644 index 5fddec0..0000000 --- a/recipes-kernel/linux/files/cfg/00028-perf.cfg +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | CONFIG_CGROUP_PERF=y | ||
| 2 | CONFIG_PERF_EVENTS=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00029-devtmpfs.cfg b/recipes-kernel/linux/files/cfg/00029-devtmpfs.cfg deleted file mode 100644 index 5e9cf98..0000000 --- a/recipes-kernel/linux/files/cfg/00029-devtmpfs.cfg +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | CONFIG_DEVTMPFS=y | ||
| 2 | CONFIG_DEVTMPFS_MOUNT=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00030-latencytop.cfg b/recipes-kernel/linux/files/cfg/00030-latencytop.cfg deleted file mode 100644 index 0a42694..0000000 --- a/recipes-kernel/linux/files/cfg/00030-latencytop.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_LATENCYTOP=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00031-igb_drv.cfg b/recipes-kernel/linux/files/cfg/00031-igb_drv.cfg deleted file mode 100644 index 3498fd0..0000000 --- a/recipes-kernel/linux/files/cfg/00031-igb_drv.cfg +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | CONFIG_IGB=y | ||
| 2 | CONFIG_IGB_DCA=y | ||
| 3 | CONFIG_IGBVF=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00032-dpa.cfg b/recipes-kernel/linux/files/cfg/00032-dpa.cfg deleted file mode 100644 index c873cd5..0000000 --- a/recipes-kernel/linux/files/cfg/00032-dpa.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_FSL_FM_MAX_FRAME_SIZE=9600 | ||
diff --git a/recipes-kernel/linux/files/cfg/00033-kprobes.cfg b/recipes-kernel/linux/files/cfg/00033-kprobes.cfg deleted file mode 100644 index e24be27..0000000 --- a/recipes-kernel/linux/files/cfg/00033-kprobes.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_KPROBES=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00034-cpusets.cfg b/recipes-kernel/linux/files/cfg/00034-cpusets.cfg deleted file mode 100644 index ec8fad4..0000000 --- a/recipes-kernel/linux/files/cfg/00034-cpusets.cfg +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | CONFIG_CGROUPS=y | ||
| 2 | CONFIG_CPUSETS=y | ||
| 3 | CONFIG_CGROUP_PERF=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00035-netfilter.cfg b/recipes-kernel/linux/files/cfg/00035-netfilter.cfg deleted file mode 100644 index 2dfdba9..0000000 --- a/recipes-kernel/linux/files/cfg/00035-netfilter.cfg +++ /dev/null | |||
| @@ -1,113 +0,0 @@ | |||
| 1 | CONFIG_NETFILTER=y | ||
| 2 | CONFIG_IP_NF_IPTABLES=y | ||
| 3 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=y | ||
| 4 | CONFIG_BRIDGE_NF_EBTABLES=y | ||
| 5 | CONFIG_IP_VS=y | ||
| 6 | CONFIG_IP_NF_FILTER=y | ||
| 7 | CONFIG_IP_NF_TARGET_ULOG=y | ||
| 8 | CONFIG_IP_NF_IPTABLES=y | ||
| 9 | # | ||
| 10 | # Not directly sourced via a kernel type but via an external bb | ||
| 11 | # | ||
| 12 | CONFIG_NETFILTER=y | ||
| 13 | CONFIG_NETFILTER_ADVANCED=y | ||
| 14 | |||
| 15 | # | ||
| 16 | # Core Netfilter Configuration | ||
| 17 | # | ||
| 18 | CONFIG_NETFILTER_NETLINK=m | ||
| 19 | CONFIG_NETFILTER_NETLINK_QUEUE=m | ||
| 20 | CONFIG_NETFILTER_NETLINK_LOG=m | ||
| 21 | CONFIG_NF_CONNTRACK=m | ||
| 22 | CONFIG_NF_CONNTRACK_MARK=y | ||
| 23 | CONFIG_NF_CT_PROTO_GRE=m | ||
| 24 | CONFIG_NF_CT_PROTO_SCTP=m | ||
| 25 | CONFIG_NF_CT_PROTO_UDPLITE=m | ||
| 26 | CONFIG_NF_CONNTRACK_AMANDA=m | ||
| 27 | CONFIG_NF_CONNTRACK_FTP=m | ||
| 28 | CONFIG_NF_CONNTRACK_H323=m | ||
| 29 | CONFIG_NF_CONNTRACK_IRC=m | ||
| 30 | CONFIG_NF_CONNTRACK_NETBIOS_NS=m | ||
| 31 | CONFIG_NF_CONNTRACK_PPTP=m | ||
| 32 | CONFIG_NF_CONNTRACK_SANE=m | ||
| 33 | CONFIG_NF_CONNTRACK_SIP=m | ||
| 34 | CONFIG_NF_CONNTRACK_TFTP=m | ||
| 35 | CONFIG_NF_CT_NETLINK=m | ||
| 36 | CONFIG_NETFILTER_XTABLES=m | ||
| 37 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m | ||
| 38 | CONFIG_NETFILTER_XT_TARGET_CONNMARK=m | ||
| 39 | CONFIG_NETFILTER_XT_TARGET_DSCP=m | ||
| 40 | CONFIG_NETFILTER_XT_TARGET_HL=m | ||
| 41 | CONFIG_NETFILTER_XT_TARGET_MARK=m | ||
| 42 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | ||
| 43 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m | ||
| 44 | CONFIG_NETFILTER_XT_TARGET_NOTRACK=m | ||
| 45 | CONFIG_NETFILTER_XT_TARGET_TRACE=m | ||
| 46 | CONFIG_NETFILTER_XT_TARGET_TCPMSS=m | ||
| 47 | CONFIG_NETFILTER_XT_MATCH_COMMENT=m | ||
| 48 | CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m | ||
| 49 | CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m | ||
| 50 | CONFIG_NETFILTER_XT_MATCH_CONNMARK=m | ||
| 51 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m | ||
| 52 | CONFIG_NETFILTER_XT_MATCH_DCCP=m | ||
| 53 | CONFIG_NETFILTER_XT_MATCH_DSCP=m | ||
| 54 | CONFIG_NETFILTER_XT_MATCH_ESP=m | ||
| 55 | CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m | ||
| 56 | CONFIG_NETFILTER_XT_MATCH_HELPER=m | ||
| 57 | CONFIG_NETFILTER_XT_MATCH_HL=m | ||
| 58 | CONFIG_NETFILTER_XT_MATCH_LENGTH=m | ||
| 59 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m | ||
| 60 | CONFIG_NETFILTER_XT_MATCH_MAC=m | ||
| 61 | CONFIG_NETFILTER_XT_MATCH_MARK=m | ||
| 62 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m | ||
| 63 | CONFIG_NETFILTER_XT_MATCH_POLICY=m | ||
| 64 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m | ||
| 65 | CONFIG_NETFILTER_XT_MATCH_QUOTA=m | ||
| 66 | CONFIG_NETFILTER_XT_MATCH_REALM=m | ||
| 67 | CONFIG_NETFILTER_XT_MATCH_SCTP=m | ||
| 68 | CONFIG_NETFILTER_XT_MATCH_STATE=m | ||
| 69 | CONFIG_NETFILTER_XT_MATCH_STATISTIC=m | ||
| 70 | CONFIG_NETFILTER_XT_MATCH_STRING=m | ||
| 71 | CONFIG_NETFILTER_XT_MATCH_TCPMSS=m | ||
| 72 | CONFIG_NETFILTER_XT_MATCH_U32=m | ||
| 73 | |||
| 74 | # | ||
| 75 | # IP: Netfilter Configuration | ||
| 76 | # | ||
| 77 | CONFIG_NF_DEFRAG_IPV4=m | ||
| 78 | CONFIG_NF_CONNTRACK_IPV4=m | ||
| 79 | CONFIG_NF_CONNTRACK_PROC_COMPAT=y | ||
| 80 | CONFIG_IP_NF_IPTABLES=m | ||
| 81 | CONFIG_IP_NF_MATCH_AH=m | ||
| 82 | CONFIG_IP_NF_MATCH_ECN=m | ||
| 83 | CONFIG_IP_NF_MATCH_TTL=m | ||
| 84 | CONFIG_IP_NF_FILTER=m | ||
| 85 | CONFIG_IP_NF_TARGET_REJECT=m | ||
| 86 | CONFIG_IP_NF_TARGET_ULOG=m | ||
| 87 | CONFIG_NF_NAT=m | ||
| 88 | CONFIG_NF_NAT_NEEDED=y | ||
| 89 | CONFIG_NF_NAT_IPV4=m | ||
| 90 | CONFIG_IP_NF_TARGET_MASQUERADE=m | ||
| 91 | CONFIG_IP_NF_TARGET_NETMAP=m | ||
| 92 | CONFIG_IP_NF_TARGET_REDIRECT=m | ||
| 93 | CONFIG_NF_NAT_SNMP_BASIC=m | ||
| 94 | CONFIG_NF_NAT_PROTO_GRE=m | ||
| 95 | CONFIG_NF_NAT_PROTO_UDPLITE=m | ||
| 96 | CONFIG_NF_NAT_PROTO_SCTP=m | ||
| 97 | CONFIG_NF_NAT_FTP=m | ||
| 98 | CONFIG_NF_NAT_IRC=m | ||
| 99 | CONFIG_NF_NAT_TFTP=m | ||
| 100 | CONFIG_NF_NAT_AMANDA=m | ||
| 101 | CONFIG_NF_NAT_PPTP=m | ||
| 102 | CONFIG_NF_NAT_H323=m | ||
| 103 | CONFIG_NF_NAT_SIP=m | ||
| 104 | CONFIG_IP_NF_MANGLE=m | ||
| 105 | CONFIG_IP_NF_TARGET_CLUSTERIP=m | ||
| 106 | CONFIG_IP_NF_TARGET_ECN=m | ||
| 107 | CONFIG_IP_NF_TARGET_TTL=m | ||
| 108 | CONFIG_IP_NF_RAW=m | ||
| 109 | CONFIG_IP_NF_ARPTABLES=m | ||
| 110 | CONFIG_IP_NF_ARPFILTER=m | ||
| 111 | CONFIG_IP_NF_ARP_MANGLE=m | ||
| 112 | |||
| 113 | CONFIG_NET_SCHED=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00036-ppc_virt.cfg b/recipes-kernel/linux/files/cfg/00036-ppc_virt.cfg deleted file mode 100644 index e41d2e9..0000000 --- a/recipes-kernel/linux/files/cfg/00036-ppc_virt.cfg +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | CONFIG_VIRTUALIZATION=y | ||
| 2 | CONFIG_KVM_E500MC=y | ||
| 3 | CONFIG_BRIDGE=y | ||
| 4 | CONFIG_TUN=y | ||
| 5 | CONFIG_PCI_STUB=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00037-ppc_lxc.cfg b/recipes-kernel/linux/files/cfg/00037-ppc_lxc.cfg deleted file mode 100644 index d4e5f8f..0000000 --- a/recipes-kernel/linux/files/cfg/00037-ppc_lxc.cfg +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | CONFIG_MEMCG=y | ||
| 2 | CONFIG_MEMCG_KMEM=y | ||
| 3 | CONFIG_CGROUP_DEVICE=y | ||
| 4 | CONFIG_CPUSETS=y | ||
| 5 | CONFIG_PROC_PID_CPUSET=y | ||
| 6 | CONFIG_RESOURCE_COUNTERS=y | ||
| 7 | CONFIG_CGROUP_MEM_RES_CTLR=y | ||
| 8 | CONFIG_CGROUP_SCHED=y | ||
| 9 | CONFIG_FAIR_GROUP_SCHED=y | ||
| 10 | CONFIG_RT_GROUP_SCHED=y | ||
| 11 | CONFIG_CHECKPOINT_RESTORE=y | ||
| 12 | CONFIG_NAMESPACES=y | ||
| 13 | CONFIG_UTS_NS=y | ||
| 14 | CONFIG_IPC_NS=y | ||
| 15 | CONFIG_USER_NS=n | ||
| 16 | CONFIG_PID_NS=y | ||
| 17 | CONFIG_NET_NS=y | ||
| 18 | CONFIG_SECCOMP=y | ||
| 19 | CONFIG_SECURITY_APPARMOR=y | ||
| 20 | CONFIG_CGROUPS=y | ||
| 21 | |||
| 22 | CONFIG_CLS_CGROUP=m | ||
| 23 | CONFIG_BLK_CGROUP=m | ||
| 24 | CONFIG_NETPRIO_CGROUP=m | ||
| 25 | |||
| 26 | CONFIG_DEVPTS_MULTIPLE_INSTANCES=y | ||
| 27 | CONFIG_VETH=y | ||
| 28 | CONFIG_MACVLAN=y | ||
| 29 | CONFIG_CGROUP_CPUACCT=y | ||
| 30 | |||
diff --git a/recipes-kernel/linux/files/cfg/00038-hotplug_cpu.cfg b/recipes-kernel/linux/files/cfg/00038-hotplug_cpu.cfg deleted file mode 100644 index 3704a7a..0000000 --- a/recipes-kernel/linux/files/cfg/00038-hotplug_cpu.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_HOTPLUG_CPU=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00039-nohz.cfg b/recipes-kernel/linux/files/cfg/00039-nohz.cfg deleted file mode 100644 index 4cf684f..0000000 --- a/recipes-kernel/linux/files/cfg/00039-nohz.cfg +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | CONFIG_NO_HZ_COMMON=y | ||
| 2 | CONFIG_NO_HZ_FULL=y | ||
| 3 | CONFIG_VIRT_CPU_ACCOUNTING=y | ||
| 4 | CONFIG_VIRT_CPU_ACCOUNTING_GEN=y | ||
| 5 | CONFIG_CONTEXT_TRACKING=y | ||
| 6 | CONFIG_RCU_USER_QS=y | ||
| 7 | CONFIG_RCU_NOCB_CPU=y | ||
| 8 | CONFIG_RCU_NOCB_CPU_ALL=y | ||
| 9 | CONFIG_LOCKUP_DETECTOR=n | ||
diff --git a/recipes-kernel/linux/files/cfg/00040-9p.cfg b/recipes-kernel/linux/files/cfg/00040-9p.cfg deleted file mode 100644 index 4b9b161..0000000 --- a/recipes-kernel/linux/files/cfg/00040-9p.cfg +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | CONFIG_NET_9P=y | ||
| 2 | CONFIG_NET_9P_VIRTIO=y | ||
| 3 | CONFIG_NET_9P_DEBUG=y | ||
| 4 | CONFIG_9P_FS=y | ||
| 5 | CONFIG_9P_FS_POSIX_ACL=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00041-virtio.cfg b/recipes-kernel/linux/files/cfg/00041-virtio.cfg deleted file mode 100644 index 41f0dcd..0000000 --- a/recipes-kernel/linux/files/cfg/00041-virtio.cfg +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | CONFIG_VIRTIO_PCI=y | ||
| 2 | CONFIG_VIRTIO_BALLOON=y | ||
| 3 | CONFIG_VIRTIO_BLK=y | ||
| 4 | CONFIG_VIRTIO_NET=y | ||
| 5 | CONFIG_VIRTIO=y | ||
| 6 | CONFIG_VIRTIO_RING=y | ||
| 7 | CONFIG_VIRTIO_MMIO=y | ||
| 8 | CONFIG_VIRTIO_CONSOLE=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00042-vhost.cfg b/recipes-kernel/linux/files/cfg/00042-vhost.cfg deleted file mode 100644 index 87a6004..0000000 --- a/recipes-kernel/linux/files/cfg/00042-vhost.cfg +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | CONFIG_VHOST_NET=y | ||
| 2 | CONFIG_PCI_MSI=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00043-containers.cfg b/recipes-kernel/linux/files/cfg/00043-containers.cfg deleted file mode 100644 index aac7304..0000000 --- a/recipes-kernel/linux/files/cfg/00043-containers.cfg +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | CONFIG_NAMESPACES=y | ||
| 2 | CONFIG_UTS_NS=y | ||
| 3 | CONFIG_IPC_NS=y | ||
| 4 | CONFIG_USER_NS=y | ||
| 5 | CONFIG_PID_NS=y | ||
| 6 | CONFIG_NET_NS=y | ||
| 7 | CONFIG_CGROUP_FREEZER=y | ||
| 8 | CONFIG_CGROUP_DEVICE=y | ||
| 9 | CONFIG_CGROUP_CPUACCT=y | ||
| 10 | CONFIG_RESOURCE_COUNTERS=y | ||
| 11 | CONFIG_CGROUP_SCHED=y | ||
| 12 | CONFIG_BLK_CGROUP=y | ||
| 13 | CONFIG_CPUSETS=y | ||
| 14 | CONFIG_MEMCG=y | ||
| 15 | CONFIG_MEMCG_KMEM=y | ||
| 16 | CONFIG_VETH=y | ||
| 17 | CONFIG_MACVLAN=y | ||
| 18 | CONFIG_DEVPTS_MULTIPLE_INSTANCES=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00044-numa.cfg b/recipes-kernel/linux/files/cfg/00044-numa.cfg deleted file mode 100644 index e480f0c..0000000 --- a/recipes-kernel/linux/files/cfg/00044-numa.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_NUMA=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00045-pci-stub.cfg b/recipes-kernel/linux/files/cfg/00045-pci-stub.cfg deleted file mode 100644 index 04aec57..0000000 --- a/recipes-kernel/linux/files/cfg/00045-pci-stub.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_PCI_STUB=m | ||
diff --git a/recipes-kernel/linux/files/cfg/00046-sata.cfg b/recipes-kernel/linux/files/cfg/00046-sata.cfg deleted file mode 100644 index 0a30897..0000000 --- a/recipes-kernel/linux/files/cfg/00046-sata.cfg +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | #enable SATA support | ||
| 2 | CONFIG_ATA=y | ||
| 3 | CONFIG_SATA_AHCI=y | ||
| 4 | CONFIG_SATA_AHCI_PLATFORM=y | ||
| 5 | CONFIG_SATA_PMP=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00047-bridge.cfg b/recipes-kernel/linux/files/cfg/00047-bridge.cfg deleted file mode 100644 index 873cbf3..0000000 --- a/recipes-kernel/linux/files/cfg/00047-bridge.cfg +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | CONFIG_BRIDGE=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00048-containers_no_user_ns.cfg b/recipes-kernel/linux/files/cfg/00048-containers_no_user_ns.cfg deleted file mode 100644 index 7b0b6f6..0000000 --- a/recipes-kernel/linux/files/cfg/00048-containers_no_user_ns.cfg +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | CONFIG_NAMESPACES=y | ||
| 2 | CONFIG_UTS_NS=y | ||
| 3 | CONFIG_IPC_NS=y | ||
| 4 | CONFIG_USER_NS=n | ||
| 5 | CONFIG_PID_NS=y | ||
| 6 | CONFIG_NET_NS=y | ||
| 7 | CONFIG_CGROUP_FREEZER=y | ||
| 8 | CONFIG_CGROUP_DEVICE=y | ||
| 9 | CONFIG_CGROUP_CPUACCT=y | ||
| 10 | CONFIG_RESOURCE_COUNTERS=y | ||
| 11 | CONFIG_CGROUP_SCHED=y | ||
| 12 | CONFIG_BLK_CGROUP=y | ||
| 13 | CONFIG_CPUSETS=y | ||
| 14 | CONFIG_MEMCG=y | ||
| 15 | CONFIG_MEMCG_KMEM=y | ||
| 16 | CONFIG_VETH=y | ||
| 17 | CONFIG_MACVLAN=y | ||
| 18 | CONFIG_DEVPTS_MULTIPLE_INSTANCES=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00049-gpio.cfg b/recipes-kernel/linux/files/cfg/00049-gpio.cfg deleted file mode 100644 index 9ea98eb..0000000 --- a/recipes-kernel/linux/files/cfg/00049-gpio.cfg +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | CONFIG_GPIO_SYSFS=y | ||
| 2 | CONFIG_GPIO_GENERIC=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00050-nfsdv4.cfg b/recipes-kernel/linux/files/cfg/00050-nfsdv4.cfg deleted file mode 100644 index fb0d0b2..0000000 --- a/recipes-kernel/linux/files/cfg/00050-nfsdv4.cfg +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | CONFIG_NFSD_V4=y | ||
| 2 | CONFIG_NFSD=y | ||
| 3 | CONFIG_INET=y | ||
| 4 | CONFIG_NET=y | ||
| 5 | CONFIG_NETWORK_FILESYSTEMS =y | ||
| 6 | CONFIG_FILE_LOCKING=y | ||
| 7 | CONFIG_PROC_FS=y | ||
diff --git a/recipes-kernel/linux/files/cfg/00051-sctp.cfg b/recipes-kernel/linux/files/cfg/00051-sctp.cfg deleted file mode 100644 index 6182ef2..0000000 --- a/recipes-kernel/linux/files/cfg/00051-sctp.cfg +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | CONFIG_NET=y | ||
| 2 | CONFIG_INET=y | ||
| 3 | CONFIG_IPV6=y | ||
| 4 | CONFIG_IP_SCTP=y | ||
diff --git a/recipes-kernel/linux/files/cfg/README b/recipes-kernel/linux/files/cfg/README deleted file mode 100644 index abfff1e..0000000 --- a/recipes-kernel/linux/files/cfg/README +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | In ordert to add a configuration fragment contained in a .cfg file, | ||
| 2 | please follow these steps: | ||
| 3 | |||
| 4 | 1. change to the directory that contains this README file. | ||
| 5 | 2. copy your fragment file here and make sure your file has a .cfg extension | ||
| 6 | 4. run the indexcfgs.pl utility from this directory to | ||
| 7 | index your file. | ||
| 8 | 5. check for the new name and use it to further reference your renamed | ||
| 9 | cfg file. | ||
diff --git a/recipes-kernel/linux/files/cfg/indexcfgs.pl b/recipes-kernel/linux/files/cfg/indexcfgs.pl deleted file mode 100755 index 96cd78a..0000000 --- a/recipes-kernel/linux/files/cfg/indexcfgs.pl +++ /dev/null | |||
| @@ -1,167 +0,0 @@ | |||
| 1 | #!/usr/bin/perl -w | ||
| 2 | #---------------------------------------------------------------------- | ||
| 3 | # indexcfgs.pl - utility to rename files in the current directory to an | ||
| 4 | # indexed format so that a unique index number is | ||
| 5 | # prepended to the current file name. The naming | ||
| 6 | # template is: | ||
| 7 | # | ||
| 8 | # DDDDD-<name-or-short-description.cfg> | ||
| 9 | # | ||
| 10 | # Usage: create the *.cfg file you need, with any name and .cfg | ||
| 11 | # extension. Run this script and it will automatically | ||
| 12 | # rename your file to the indexed format above. | ||
| 13 | # | ||
| 14 | # Author: Daniel BORNAZ <daniel.bornaz@enea.com | ||
| 15 | # Date: 2014/04/09 | ||
| 16 | # Version: 1.0 | ||
| 17 | # | ||
| 18 | #---------------------------------------------------------------------- | ||
| 19 | |||
| 20 | use strict; | ||
| 21 | use warnings; | ||
| 22 | use Getopt::Long; | ||
| 23 | |||
| 24 | my %args; | ||
| 25 | my $counter_indexed=0; | ||
| 26 | my $filetype="*.cfg"; | ||
| 27 | my $counter_queue=0; | ||
| 28 | my $max_index=0; | ||
| 29 | my $dir="./"; | ||
| 30 | my @files; | ||
| 31 | my @queue; | ||
| 32 | my $opt_strip; | ||
| 33 | my $opt_help; | ||
| 34 | |||
| 35 | |||
| 36 | #-------------------------------------------------------------------- | ||
| 37 | # strip the index from the file name | ||
| 38 | # | ||
| 39 | sub removeindex($){ | ||
| 40 | my $tmpname=shift; | ||
| 41 | my $newname; | ||
| 42 | |||
| 43 | if($tmpname=~/^\d{5}\-.*cfg/ig){ | ||
| 44 | $newname=substr($tmpname,6); | ||
| 45 | system("mv",$tmpname,$newname) == 0 | ||
| 46 | or die "Cannot rename $tmpname to $newname: $?"; | ||
| 47 | }else{ | ||
| 48 | return 0; | ||
| 49 | } | ||
| 50 | } | ||
| 51 | |||
| 52 | #-------------------------------------------------------------------- | ||
| 53 | # get the indexed file name, return the index | ||
| 54 | # | ||
| 55 | sub decodeindex($){ | ||
| 56 | my $tmpname=shift; | ||
| 57 | |||
| 58 | if($tmpname=~/^\d{5}\-.*cfg/ig){ | ||
| 59 | return substr($tmpname,0,5); | ||
| 60 | }else{ | ||
| 61 | return 0; | ||
| 62 | } | ||
| 63 | } | ||
| 64 | |||
| 65 | #-------------------------------------------------------------------- | ||
| 66 | # remove index from cfg files in current directory | ||
| 67 | # | ||
| 68 | sub strip_file_names { | ||
| 69 | print "Start removing index from $filetype files in $dir\n"; | ||
| 70 | |||
| 71 | opendir(DIR,$dir) or die $!; | ||
| 72 | |||
| 73 | while( my $file=readdir(DIR)){ | ||
| 74 | # retrieve cfg files (*.cfg) | ||
| 75 | if($file=~/cfg$/gi){ | ||
| 76 | removeindex($file); | ||
| 77 | } | ||
| 78 | } | ||
| 79 | |||
| 80 | closedir(DIR); | ||
| 81 | } | ||
| 82 | |||
| 83 | #-------------------------------------------------------------------- | ||
| 84 | # index current directory cfg files | ||
| 85 | # | ||
| 86 | sub index_file_names { | ||
| 87 | print "Start indexing $filetype files in $dir\n"; | ||
| 88 | |||
| 89 | opendir(DIR,$dir) or die $!; | ||
| 90 | |||
| 91 | while( my $file=readdir(DIR)){ | ||
| 92 | # retrieve cfg files (*.cfg) | ||
| 93 | if($file=~/cfg$/gi){ | ||
| 94 | @files=(@files,$file); | ||
| 95 | } | ||
| 96 | } | ||
| 97 | |||
| 98 | closedir(DIR); | ||
| 99 | |||
| 100 | |||
| 101 | # separate indexed file names from the ones to be processed | ||
| 102 | foreach my $file (@files){ | ||
| 103 | if($file=~/^\d{5}\-.*cfg/){ | ||
| 104 | my $crt_index=0; | ||
| 105 | |||
| 106 | $crt_index=decodeindex($file); | ||
| 107 | |||
| 108 | if($crt_index > $max_index){ | ||
| 109 | $max_index=$crt_index; | ||
| 110 | } | ||
| 111 | |||
| 112 | $counter_indexed++; | ||
| 113 | }else{ | ||
| 114 | @queue=($file,@queue); | ||
| 115 | $counter_queue++; | ||
| 116 | } | ||
| 117 | } | ||
| 118 | |||
| 119 | # set the next index number | ||
| 120 | $max_index++; | ||
| 121 | |||
| 122 | # index the enqueued file names | ||
| 123 | foreach my $file (@queue){ | ||
| 124 | my $newname; | ||
| 125 | |||
| 126 | $newname=sprintf("%05d-%s",$max_index++,$file); | ||
| 127 | system("mv",$file,$newname) == 0 | ||
| 128 | or die "Cannot rename $file to $newname: $?"; | ||
| 129 | } | ||
| 130 | |||
| 131 | printf("$counter_queue files indexed, ". | ||
| 132 | "$counter_indexed files already indexed. Done.\n"); | ||
| 133 | } | ||
| 134 | |||
| 135 | #-------------------------------------------------------------------- | ||
| 136 | # display usage help | ||
| 137 | # | ||
| 138 | sub print_usage { | ||
| 139 | print "\n"; | ||
| 140 | print " ./indexcfgs.pl [--strip]\n"; | ||
| 141 | print " no params: Index the *.cfg file names in current dir\n"; | ||
| 142 | print " to DDDDD-<original_file_name.cfg>\n"; | ||
| 143 | print " --strip: Strips the index from the *.cfg file names ". | ||
| 144 | "in current dir\n"; | ||
| 145 | print "\n"; | ||
| 146 | |||
| 147 | exit 0; | ||
| 148 | } | ||
| 149 | |||
| 150 | |||
| 151 | #--- Program starts here -------------------------------------------- | ||
| 152 | GetOptions(\%args, | ||
| 153 | "strip" => \$opt_strip, | ||
| 154 | "help" => \$opt_help, | ||
| 155 | ); | ||
| 156 | |||
| 157 | if(defined($opt_help)){ | ||
| 158 | print_usage(); | ||
| 159 | } | ||
| 160 | |||
| 161 | if(defined($opt_strip)){ | ||
| 162 | strip_file_names(); | ||
| 163 | }else{ | ||
| 164 | index_file_names(); | ||
| 165 | } | ||
| 166 | |||
| 167 | |||
