diff options
Diffstat (limited to 'recipes-kernel')
55 files changed, 661 insertions, 0 deletions
diff --git a/recipes-kernel/linux/enea-common.inc b/recipes-kernel/linux/enea-common.inc new file mode 100644 index 0000000..5de0749 --- /dev/null +++ b/recipes-kernel/linux/enea-common.inc | |||
@@ -0,0 +1,12 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
2 | |||
3 | def format_file_uri(d): | ||
4 | substrlist = d.getVar("ENEA_KERN_FRAGMENTS").split() | ||
5 | ostr = '' | ||
6 | for substr in substrlist: | ||
7 | ostr = ostr + " file://" + substr | ||
8 | return ostr.lstrip() | ||
9 | |||
10 | ENEA_KERN_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 new file mode 100644 index 0000000..2f0e6bf --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00001-embedded.cfg | |||
@@ -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 new file mode 100644 index 0000000..f8d8748 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00002-root_nfs.cfg | |||
@@ -0,0 +1,7 @@ | |||
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 new file mode 100644 index 0000000..43e95f2 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00003-fuse.cfg | |||
@@ -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 new file mode 100644 index 0000000..88c278c --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00004-systemtap.cfg | |||
@@ -0,0 +1,6 @@ | |||
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 new file mode 100644 index 0000000..21aabc1 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00005-pramfs.cfg | |||
@@ -0,0 +1,4 @@ | |||
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 new file mode 100644 index 0000000..f4b3ae2 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00006-with_modules.cfg | |||
@@ -0,0 +1,5 @@ | |||
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 new file mode 100644 index 0000000..959e94b --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00007-oprofile.cfg | |||
@@ -0,0 +1,4 @@ | |||
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 new file mode 100644 index 0000000..d82eee4 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00008-uio_m.cfg | |||
@@ -0,0 +1,3 @@ | |||
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 new file mode 100644 index 0000000..eaddbaf --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00009-e500mc_debug.cfg | |||
@@ -0,0 +1,6 @@ | |||
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 new file mode 100644 index 0000000..1476224 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00010-pramfs-bsc913x.cfg | |||
@@ -0,0 +1,5 @@ | |||
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 new file mode 100644 index 0000000..43fd0bd --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00012-preempt.cfg | |||
@@ -0,0 +1,9 @@ | |||
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 new file mode 100644 index 0000000..71481b4 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00013-localversion.cfg | |||
@@ -0,0 +1,2 @@ | |||
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 new file mode 100644 index 0000000..f23cfe3 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00014-kgdb.cfg | |||
@@ -0,0 +1,9 @@ | |||
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 new file mode 100644 index 0000000..b26593e --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00015-uio.cfg | |||
@@ -0,0 +1,3 @@ | |||
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 new file mode 100644 index 0000000..b3fae70 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00016-largefilessupport.cfg | |||
@@ -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 new file mode 100644 index 0000000..89aea43 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00017-preempt_keystone.cfg | |||
@@ -0,0 +1,7 @@ | |||
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 new file mode 100644 index 0000000..a15c930 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00018-rt.cfg | |||
@@ -0,0 +1,3 @@ | |||
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 new file mode 100644 index 0000000..8dbcc3c --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00019-i2c.cfg | |||
@@ -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 new file mode 100644 index 0000000..0d83d11 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00021-bootlogd.cfg | |||
@@ -0,0 +1,2 @@ | |||
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 new file mode 100644 index 0000000..1477bd7 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00022-mtd_tests.cfg | |||
@@ -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 new file mode 100644 index 0000000..9e7666c --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00023-ikconfig.cfg | |||
@@ -0,0 +1,2 @@ | |||
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 new file mode 100644 index 0000000..c9b47ac --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00024-preempt_romley-ivb.cfg | |||
@@ -0,0 +1,8 @@ | |||
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 new file mode 100644 index 0000000..655c101 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00025-powertop.cfg | |||
@@ -0,0 +1,13 @@ | |||
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 new file mode 100644 index 0000000..e36a9c2 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00026-ltp.cfg | |||
@@ -0,0 +1,3 @@ | |||
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 new file mode 100644 index 0000000..1334194 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00027-lttng.cfg | |||
@@ -0,0 +1,20 @@ | |||
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 new file mode 100644 index 0000000..5fddec0 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00028-perf.cfg | |||
@@ -0,0 +1,2 @@ | |||
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 new file mode 100644 index 0000000..5e9cf98 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00029-devtmpfs.cfg | |||
@@ -0,0 +1,2 @@ | |||
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 new file mode 100644 index 0000000..0a42694 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00030-latencytop.cfg | |||
@@ -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 new file mode 100644 index 0000000..3498fd0 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00031-igb_drv.cfg | |||
@@ -0,0 +1,3 @@ | |||
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 new file mode 100644 index 0000000..c873cd5 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00032-dpa.cfg | |||
@@ -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 new file mode 100644 index 0000000..e24be27 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00033-kprobes.cfg | |||
@@ -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 new file mode 100644 index 0000000..ec8fad4 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00034-cpusets.cfg | |||
@@ -0,0 +1,3 @@ | |||
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 new file mode 100644 index 0000000..2dfdba9 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00035-netfilter.cfg | |||
@@ -0,0 +1,113 @@ | |||
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 new file mode 100644 index 0000000..e41d2e9 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00036-ppc_virt.cfg | |||
@@ -0,0 +1,5 @@ | |||
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 new file mode 100644 index 0000000..d4e5f8f --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00037-ppc_lxc.cfg | |||
@@ -0,0 +1,30 @@ | |||
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 new file mode 100644 index 0000000..3704a7a --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00038-hotplug_cpu.cfg | |||
@@ -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 new file mode 100644 index 0000000..4cf684f --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00039-nohz.cfg | |||
@@ -0,0 +1,9 @@ | |||
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 new file mode 100644 index 0000000..4b9b161 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00040-9p.cfg | |||
@@ -0,0 +1,5 @@ | |||
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 new file mode 100644 index 0000000..41f0dcd --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00041-virtio.cfg | |||
@@ -0,0 +1,8 @@ | |||
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 new file mode 100644 index 0000000..87a6004 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00042-vhost.cfg | |||
@@ -0,0 +1,2 @@ | |||
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 new file mode 100644 index 0000000..aac7304 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00043-containers.cfg | |||
@@ -0,0 +1,18 @@ | |||
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 new file mode 100644 index 0000000..e480f0c --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00044-numa.cfg | |||
@@ -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 new file mode 100644 index 0000000..04aec57 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00045-pci-stub.cfg | |||
@@ -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 new file mode 100644 index 0000000..0a30897 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00046-sata.cfg | |||
@@ -0,0 +1,5 @@ | |||
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 new file mode 100644 index 0000000..873cbf3 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00047-bridge.cfg | |||
@@ -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 new file mode 100644 index 0000000..7b0b6f6 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00048-containers_no_user_ns.cfg | |||
@@ -0,0 +1,18 @@ | |||
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 new file mode 100644 index 0000000..9ea98eb --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00049-gpio.cfg | |||
@@ -0,0 +1,2 @@ | |||
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 new file mode 100644 index 0000000..fb0d0b2 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00050-nfsdv4.cfg | |||
@@ -0,0 +1,7 @@ | |||
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 new file mode 100644 index 0000000..6182ef2 --- /dev/null +++ b/recipes-kernel/linux/files/cfg/00051-sctp.cfg | |||
@@ -0,0 +1,4 @@ | |||
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 new file mode 100644 index 0000000..abfff1e --- /dev/null +++ b/recipes-kernel/linux/files/cfg/README | |||
@@ -0,0 +1,9 @@ | |||
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 new file mode 100755 index 0000000..96cd78a --- /dev/null +++ b/recipes-kernel/linux/files/cfg/indexcfgs.pl | |||
@@ -0,0 +1,167 @@ | |||
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 | |||
diff --git a/recipes-kernel/perf/perf.bbappend b/recipes-kernel/perf/perf.bbappend new file mode 100644 index 0000000..864f938 --- /dev/null +++ b/recipes-kernel/perf/perf.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | # | ||
2 | # added the python-math and python-sqlite3 modules, required by perf | ||
3 | # | ||
4 | SCRIPTING_RDEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl perl-modules python python-math python-sqlite3', '',d)}" | ||
diff --git a/recipes-kernel/pramfs-init/files/pramfs_init b/recipes-kernel/pramfs-init/files/pramfs_init new file mode 100644 index 0000000..64c7bc2 --- /dev/null +++ b/recipes-kernel/pramfs-init/files/pramfs_init | |||
@@ -0,0 +1,80 @@ | |||
1 | #!/bin/sh | ||
2 | #set -e | ||
3 | |||
4 | echo "Setting up pramfs" | ||
5 | |||
6 | # ensure the required binaries are present | ||
7 | #[ -x /sbin/modprobe ] || exit 1 | ||
8 | [ -x /bin/mount ] || exit 1 | ||
9 | [ -x /bin/grep ] || exit 1 | ||
10 | [ -x /bin/cat ] || exit 1 | ||
11 | [ -x /bin/sed ] || exit 1 | ||
12 | |||
13 | #modprobe pramfs | ||
14 | mkdir -p /mnt/pram | ||
15 | |||
16 | case "$1" in | ||
17 | start) | ||
18 | # Figure out RAM for pramfs | ||
19 | # This requires a kernel cmdline resevation of PRAMFS physmem | ||
20 | # in format memmap=16M$0x7000000 | ||
21 | grep memmap /proc/cmdline > /dev/null | ||
22 | if [ $? -eq 0 ]; then | ||
23 | addr=$(sed 's/.*memmap=\([^ ]*\)\$\([^ ]*\).*/\2/' < /proc/cmdline) | ||
24 | size=$(sed 's/.*memmap=\([^ ]*\)\$\([^ ]*\).*/\1/' < /proc/cmdline) | ||
25 | |||
26 | if [ -d /seed ]; then | ||
27 | echo "Init new pramfs" | ||
28 | mount -t pramfs -o physaddr=$addr,init=$size,bs=1k none /mnt/pram > /dev/null 2>&1 | ||
29 | cp /seed/* /mnt/pram | ||
30 | echo "0" > /mnt/pram/kcount | ||
31 | else | ||
32 | echo "Mounting old pramfs" | ||
33 | mount -t pramfs -o physaddr=$addr,bs=1k none /mnt/pram > /dev/null 2>&1 | ||
34 | if [ $? -ne 0 ]; then | ||
35 | echo "Mounting old pramfs failed, zeroing" | ||
36 | mount -t pramfs -o physaddr=$addr,init=$size,bs=1k none /mnt/pram > /dev/null 2>&1 | ||
37 | if [ $? -ne 0 ]; then | ||
38 | echo "All attempts to mount pramfs has failed, exiting" | ||
39 | rm -fr /mnt/pram | ||
40 | exit 1 | ||
41 | fi | ||
42 | echo "0" > /mnt/pram/kcount | ||
43 | fi | ||
44 | fi | ||
45 | |||
46 | # echo "* Setting up kexec" | ||
47 | # kexec -l --reuse-cmdline --initrd=/mnt/pram/initramfs.cpio.gz /mnt/pram/vmlinuz | ||
48 | |||
49 | # Calculate number of boots | ||
50 | export KCOUNT=$(expr $(cat /mnt/pram/kcount) + 1) | ||
51 | echo $KCOUNT > /mnt/pram/kcount | ||
52 | else | ||
53 | KCOUNT="no-mem" | ||
54 | echo "Can't find memory area for pram fs" | ||
55 | rm -fr /mnt/pram | ||
56 | fi | ||
57 | |||
58 | echo "PRAMFS boot count: $KCOUNT" | ||
59 | # echo "kexec -e to kexec and keep persistent files in /mnt/pram" | ||
60 | ;; | ||
61 | stop) | ||
62 | echo | ||
63 | ;; | ||
64 | restart) | ||
65 | $0 stop | ||
66 | $0 start | ||
67 | ;; | ||
68 | *) | ||
69 | echo "usage: $0 { start | stop | restart }" >&2 | ||
70 | exit 1 | ||
71 | ;; | ||
72 | esac | ||
73 | |||
74 | exit 0 | ||
75 | |||
76 | |||
77 | |||
78 | |||
79 | |||
80 | |||
diff --git a/recipes-kernel/pramfs-init/pramfs-init_1.0.bb b/recipes-kernel/pramfs-init/pramfs-init_1.0.bb new file mode 100644 index 0000000..d9b36a7 --- /dev/null +++ b/recipes-kernel/pramfs-init/pramfs-init_1.0.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | DESCRIPTION = "Pramfs init scripts" | ||
2 | SECTION = "init" | ||
3 | LICENSE = "BSD" | ||
4 | SRC_URI = "file://pramfs_init" | ||
5 | PR = "r0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
8 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
9 | |||
10 | PACKAGE_ARCH = "all" | ||
11 | |||
12 | do_install() { | ||
13 | install -d ${D}${sysconfdir}/init.d/ | ||
14 | install -m 0755 ${WORKDIR}/pramfs_init ${D}${sysconfdir}/init.d/pramfs_init | ||
15 | } | ||
16 | |||
17 | inherit update-rc.d | ||
18 | |||
19 | INITSCRIPT_NAME = "pramfs_init" | ||
20 | INITSCRIPT_PARAMS = "start 99 5 2 . stop 19 0 1 6 ." | ||