summaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
author"Steven J. Hill"2005-08-19 01:15:57 +0200
committer"Steven J. Hill"2005-08-19 01:15:57 +0200
commitbcb40eb351b112fa726045be8d70ee4e30225e1f (patch)
tree99c8bec93f4c4eeb7c4f4c59198b2c9ef284ad45 /toolchain
parentChanges to allow compilation with GCC-4.1.0. (diff)
downloadbuildroot-bcb40eb351b112fa726045be8d70ee4e30225e1f.tar.gz
buildroot-bcb40eb351b112fa726045be8d70ee4e30225e1f.tar.xz
buildroot-bcb40eb351b112fa726045be8d70ee4e30225e1f.zip
Remove usage of CONFIG_BASE_SMALL so that the latest LTP code will compile for buildroot. Normally, this option is defined in 'include/linux/config.h'. The actual configuration language is found in the Linux 2.6 kernel in the file 'init/Kconfig' and normally has the value of 0.
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/kernel-headers/linux-libc-headers-2.6.12.0-config-base-small.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-config-base-small.patch b/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-config-base-small.patch
new file mode 100644
index 000000000..b6bbfd64a
--- /dev/null
+++ b/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-config-base-small.patch
@@ -0,0 +1,30 @@
+diff -urN linux-libc-headers-2.6.12.0/include/linux/threads.h linux-libc-headers-2.6.12.0-patched/include/linux/threads.h
+--- linux-libc-headers-2.6.12.0/include/linux/threads.h 2005-07-05 19:17:23.000000000 -0500
++++ linux-libc-headers-2.6.12.0-patched/include/linux/threads.h 2005-08-18 11:39:15.000000000 -0500
+@@ -24,12 +24,11 @@
+ /*
+ * This controls the default maximum pid allocated to a process
+ */
+-#define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)
++#define PID_MAX_DEFAULT 0x8000
+
+ /*
+ * A maximum of 4 million PIDs should be enough for a while:
+ */
+-#define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
+- (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
++#define PID_MAX_LIMIT (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT)
+
+ #endif
+diff -urN linux-libc-headers-2.6.12.0/include/linux/vt_kern.h linux-libc-headers-2.6.12.0-patched/include/linux/vt_kern.h
+--- linux-libc-headers-2.6.12.0/include/linux/vt_kern.h 2005-07-05 19:17:23.000000000 -0500
++++ linux-libc-headers-2.6.12.0-patched/include/linux/vt_kern.h 2005-08-18 11:39:30.000000000 -0500
+@@ -77,7 +77,7 @@
+ * we can easily avoid touching user space while holding the console spinlock.
+ */
+
+-#define CON_BUF_SIZE (CONFIG_BASE_SMALL ? 256 : PAGE_SIZE)
++#define CON_BUF_SIZE PAGE_SIZE
+ extern char con_buf[CON_BUF_SIZE];
+ extern struct semaphore con_buf_sem;
+