summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-10-18 18:05:55 +0800
committerGitHub <[email protected]>2021-10-18 18:05:55 +0800
commit554c7b36eef3dbd238ac5dba0e30efa6b18845e5 (patch)
treef14e24d145a40620dbb8fd5a5d807b972ec4a1d5
parent9fe546b0d86b17c64e57447913c8a9f3a9c40534 (diff)
parentb513d37cf2fc33c2dd20021316533feaac0bef23 (diff)
Merge pull request #5200 from mysterywolf/posixfolder
[libc][posix] create 'posix' folder and move related files into it
-rw-r--r--components/libc/posix/SConscript15
-rw-r--r--components/libc/posix/aio/SConscript (renamed from components/libc/aio/SConscript)0
-rw-r--r--components/libc/posix/aio/posix_aio.c (renamed from components/libc/aio/posix_aio.c)0
-rw-r--r--components/libc/posix/aio/posix_aio.h (renamed from components/libc/aio/posix_aio.h)0
-rw-r--r--components/libc/posix/mmap/SConscript (renamed from components/libc/mmap/SConscript)0
-rw-r--r--components/libc/posix/mmap/posix_mmap.c (renamed from components/libc/mmap/posix_mmap.c)0
-rw-r--r--components/libc/posix/pthreads/SConscript (renamed from components/libc/pthreads/SConscript)0
-rw-r--r--components/libc/posix/pthreads/mqueue.c (renamed from components/libc/pthreads/mqueue.c)0
-rw-r--r--components/libc/posix/pthreads/mqueue.h (renamed from components/libc/pthreads/mqueue.h)0
-rw-r--r--components/libc/posix/pthreads/posix_types.h (renamed from components/libc/pthreads/posix_types.h)0
-rw-r--r--components/libc/posix/pthreads/pthread.c (renamed from components/libc/pthreads/pthread.c)0
-rw-r--r--components/libc/posix/pthreads/pthread.h (renamed from components/libc/pthreads/pthread.h)0
-rw-r--r--components/libc/posix/pthreads/pthread_attr.c (renamed from components/libc/pthreads/pthread_attr.c)0
-rw-r--r--components/libc/posix/pthreads/pthread_barrier.c (renamed from components/libc/pthreads/pthread_barrier.c)0
-rw-r--r--components/libc/posix/pthreads/pthread_cond.c (renamed from components/libc/pthreads/pthread_cond.c)0
-rw-r--r--components/libc/posix/pthreads/pthread_internal.h (renamed from components/libc/pthreads/pthread_internal.h)0
-rw-r--r--components/libc/posix/pthreads/pthread_mutex.c (renamed from components/libc/pthreads/pthread_mutex.c)0
-rw-r--r--components/libc/posix/pthreads/pthread_rwlock.c (renamed from components/libc/pthreads/pthread_rwlock.c)0
-rw-r--r--components/libc/posix/pthreads/pthread_spin.c (renamed from components/libc/pthreads/pthread_spin.c)0
-rw-r--r--components/libc/posix/pthreads/pthread_tls.c (renamed from components/libc/pthreads/pthread_tls.c)0
-rw-r--r--components/libc/posix/pthreads/sched.c (renamed from components/libc/pthreads/sched.c)0
-rw-r--r--components/libc/posix/pthreads/sched.h (renamed from components/libc/pthreads/sched.h)0
-rw-r--r--components/libc/posix/pthreads/semaphore.c (renamed from components/libc/pthreads/semaphore.c)0
-rw-r--r--components/libc/posix/pthreads/semaphore.h (renamed from components/libc/pthreads/semaphore.h)0
-rw-r--r--components/libc/posix/signal/SConscript (renamed from components/libc/signal/SConscript)0
-rw-r--r--components/libc/posix/signal/posix_signal.c (renamed from components/libc/signal/posix_signal.c)0
-rw-r--r--components/libc/posix/signal/posix_signal.h (renamed from components/libc/signal/posix_signal.h)0
-rw-r--r--components/libc/posix/termios/SConscript (renamed from components/libc/termios/SConscript)0
-rw-r--r--components/libc/posix/termios/posix_termios.c (renamed from components/libc/termios/posix_termios.c)0
-rw-r--r--components/libc/posix/termios/posix_termios.h (renamed from components/libc/termios/posix_termios.h)0
30 files changed, 15 insertions, 0 deletions
diff --git a/components/libc/posix/SConscript b/components/libc/posix/SConscript
new file mode 100644
index 0000000000..4c815c49b8
--- /dev/null
+++ b/components/libc/posix/SConscript
@@ -0,0 +1,15 @@
+# RT-Thread building script for bridge
+
+import os
+from building import *
+
+cwd = GetCurrentDir()
+objs = []
+list = os.listdir(cwd)
+
+for d in list:
+ path = os.path.join(cwd, d)
+ if os.path.isfile(os.path.join(path, 'SConscript')):
+ objs = objs + SConscript(os.path.join(d, 'SConscript'))
+
+Return('objs')
diff --git a/components/libc/aio/SConscript b/components/libc/posix/aio/SConscript
index f10462e9c4..f10462e9c4 100644
--- a/components/libc/aio/SConscript
+++ b/components/libc/posix/aio/SConscript
diff --git a/components/libc/aio/posix_aio.c b/components/libc/posix/aio/posix_aio.c
index 66cced8687..66cced8687 100644
--- a/components/libc/aio/posix_aio.c
+++ b/components/libc/posix/aio/posix_aio.c
diff --git a/components/libc/aio/posix_aio.h b/components/libc/posix/aio/posix_aio.h
index 4e25e1d15b..4e25e1d15b 100644
--- a/components/libc/aio/posix_aio.h
+++ b/components/libc/posix/aio/posix_aio.h
diff --git a/components/libc/mmap/SConscript b/components/libc/posix/mmap/SConscript
index 1a36a15710..1a36a15710 100644
--- a/components/libc/mmap/SConscript
+++ b/components/libc/posix/mmap/SConscript
diff --git a/components/libc/mmap/posix_mmap.c b/components/libc/posix/mmap/posix_mmap.c
index e68b82e640..e68b82e640 100644
--- a/components/libc/mmap/posix_mmap.c
+++ b/components/libc/posix/mmap/posix_mmap.c
diff --git a/components/libc/pthreads/SConscript b/components/libc/posix/pthreads/SConscript
index 767b406d4c..767b406d4c 100644
--- a/components/libc/pthreads/SConscript
+++ b/components/libc/posix/pthreads/SConscript
diff --git a/components/libc/pthreads/mqueue.c b/components/libc/posix/pthreads/mqueue.c
index 6840164a68..6840164a68 100644
--- a/components/libc/pthreads/mqueue.c
+++ b/components/libc/posix/pthreads/mqueue.c
diff --git a/components/libc/pthreads/mqueue.h b/components/libc/posix/pthreads/mqueue.h
index 5152bfad29..5152bfad29 100644
--- a/components/libc/pthreads/mqueue.h
+++ b/components/libc/posix/pthreads/mqueue.h
diff --git a/components/libc/pthreads/posix_types.h b/components/libc/posix/pthreads/posix_types.h
index 5838e8b370..5838e8b370 100644
--- a/components/libc/pthreads/posix_types.h
+++ b/components/libc/posix/pthreads/posix_types.h
diff --git a/components/libc/pthreads/pthread.c b/components/libc/posix/pthreads/pthread.c
index b0bf39dff6..b0bf39dff6 100644
--- a/components/libc/pthreads/pthread.c
+++ b/components/libc/posix/pthreads/pthread.c
diff --git a/components/libc/pthreads/pthread.h b/components/libc/posix/pthreads/pthread.h
index 177b2539c5..177b2539c5 100644
--- a/components/libc/pthreads/pthread.h
+++ b/components/libc/posix/pthreads/pthread.h
diff --git a/components/libc/pthreads/pthread_attr.c b/components/libc/posix/pthreads/pthread_attr.c
index 4aedf5a90d..4aedf5a90d 100644
--- a/components/libc/pthreads/pthread_attr.c
+++ b/components/libc/posix/pthreads/pthread_attr.c
diff --git a/components/libc/pthreads/pthread_barrier.c b/components/libc/posix/pthreads/pthread_barrier.c
index 1a5b7fa3f9..1a5b7fa3f9 100644
--- a/components/libc/pthreads/pthread_barrier.c
+++ b/components/libc/posix/pthreads/pthread_barrier.c
diff --git a/components/libc/pthreads/pthread_cond.c b/components/libc/posix/pthreads/pthread_cond.c
index 9bf49704ed..9bf49704ed 100644
--- a/components/libc/pthreads/pthread_cond.c
+++ b/components/libc/posix/pthreads/pthread_cond.c
diff --git a/components/libc/pthreads/pthread_internal.h b/components/libc/posix/pthreads/pthread_internal.h
index 1fce29f636..1fce29f636 100644
--- a/components/libc/pthreads/pthread_internal.h
+++ b/components/libc/posix/pthreads/pthread_internal.h
diff --git a/components/libc/pthreads/pthread_mutex.c b/components/libc/posix/pthreads/pthread_mutex.c
index a681380b11..a681380b11 100644
--- a/components/libc/pthreads/pthread_mutex.c
+++ b/components/libc/posix/pthreads/pthread_mutex.c
diff --git a/components/libc/pthreads/pthread_rwlock.c b/components/libc/posix/pthreads/pthread_rwlock.c
index 1c2fe19f5f..1c2fe19f5f 100644
--- a/components/libc/pthreads/pthread_rwlock.c
+++ b/components/libc/posix/pthreads/pthread_rwlock.c
diff --git a/components/libc/pthreads/pthread_spin.c b/components/libc/posix/pthreads/pthread_spin.c
index 3f3dc1593c..3f3dc1593c 100644
--- a/components/libc/pthreads/pthread_spin.c
+++ b/components/libc/posix/pthreads/pthread_spin.c
diff --git a/components/libc/pthreads/pthread_tls.c b/components/libc/posix/pthreads/pthread_tls.c
index d48df7f2dd..d48df7f2dd 100644
--- a/components/libc/pthreads/pthread_tls.c
+++ b/components/libc/posix/pthreads/pthread_tls.c
diff --git a/components/libc/pthreads/sched.c b/components/libc/posix/pthreads/sched.c
index 5f2a53c01f..5f2a53c01f 100644
--- a/components/libc/pthreads/sched.c
+++ b/components/libc/posix/pthreads/sched.c
diff --git a/components/libc/pthreads/sched.h b/components/libc/posix/pthreads/sched.h
index 07e2c0c6a8..07e2c0c6a8 100644
--- a/components/libc/pthreads/sched.h
+++ b/components/libc/posix/pthreads/sched.h
diff --git a/components/libc/pthreads/semaphore.c b/components/libc/posix/pthreads/semaphore.c
index 5e59ae850f..5e59ae850f 100644
--- a/components/libc/pthreads/semaphore.c
+++ b/components/libc/posix/pthreads/semaphore.c
diff --git a/components/libc/pthreads/semaphore.h b/components/libc/posix/pthreads/semaphore.h
index 872226e385..872226e385 100644
--- a/components/libc/pthreads/semaphore.h
+++ b/components/libc/posix/pthreads/semaphore.h
diff --git a/components/libc/signal/SConscript b/components/libc/posix/signal/SConscript
index f07ff58f6e..f07ff58f6e 100644
--- a/components/libc/signal/SConscript
+++ b/components/libc/posix/signal/SConscript
diff --git a/components/libc/signal/posix_signal.c b/components/libc/posix/signal/posix_signal.c
index ac8d2b1eef..ac8d2b1eef 100644
--- a/components/libc/signal/posix_signal.c
+++ b/components/libc/posix/signal/posix_signal.c
diff --git a/components/libc/signal/posix_signal.h b/components/libc/posix/signal/posix_signal.h
index f04b54c5f8..f04b54c5f8 100644
--- a/components/libc/signal/posix_signal.h
+++ b/components/libc/posix/signal/posix_signal.h
diff --git a/components/libc/termios/SConscript b/components/libc/posix/termios/SConscript
index 381eb5ad8b..381eb5ad8b 100644
--- a/components/libc/termios/SConscript
+++ b/components/libc/posix/termios/SConscript
diff --git a/components/libc/termios/posix_termios.c b/components/libc/posix/termios/posix_termios.c
index 9f33c857e6..9f33c857e6 100644
--- a/components/libc/termios/posix_termios.c
+++ b/components/libc/posix/termios/posix_termios.c
diff --git a/components/libc/termios/posix_termios.h b/components/libc/posix/termios/posix_termios.h
index 6dc5531955..6dc5531955 100644
--- a/components/libc/termios/posix_termios.h
+++ b/components/libc/posix/termios/posix_termios.h