summaryrefslogtreecommitdiff
path: root/extra/scripts/gen_bits_syscall_h.sh
AgeCommit message (Collapse)Author
2015-03-22extra: add clang flags for gen_bits_syscall_hBernhard Reutner-Fischer
Closes bugzilla #6008 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-01-26buildsys: gen_bits_syscall_h: do not leave undefined SYS_xxx aroundMike Frysinger
If we end up doing '#undef __NR_xxx', we don't want to leave the corresponding SYS_xxx symbol defined. So undef it too. For example, with the ARM EABI layer, we have a bunch of legacy syscalls that we define early on and then later undefine (such as __NR_utime). But we left SYS_utime defined so code that tests for that define before using it would be broken (since it'd be defined to a non-existent symbol). URL: https://bugs.gentoo.org/425006 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-26buildsys: gen_bits_syscall_h: clean up scriptMike Frysinger
Just style changes here to make it more readable. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-26buildsys: gen_bits_syscall_h: remove top_builddir referencesMike Frysinger
This script hasn't used this var in a while (it writes to stdout), so drop all mention/usage of it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-26buildsys: allow the toolchain to search its dirs for kernel headersMike Frysinger
Setting KERNEL_HEADERS up to the exact path all the time is a pita, especially when the toolchain is often times already configured to do the right thing. So if the user has set that to "", don't force any specific paths. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-09-24- remove debug cruftBernhard Reutner-Fischer
2008-09-24- deal with ARM specific syscalls. Closes #2894Bernhard Reutner-Fischer
2008-05-21- Wrap overlong comment-lines. No object-code changesBernhard Reutner-Fischer
2006-12-12we just want the kernel headers, not the whole kernel source ... so people ↵Mike Frysinger
may need to update their paths slightly
2006-12-11kill off the need for fix_includes.sh by utilizing KERNEL_SOURCE directlyMike Frysinger
2006-10-07Sergey Lapin says the undefined syscall numbers from unistd.h do not get ↵Khem Raj
propogated into generated sysnum.h.
2006-01-24- make sure that icc generates bits/sysnum.hBernhard Reutner-Fischer
pgcc would need a completely different treatment here.
2005-11-17Replace TOPDIR w/ top_builddirPeter S. Mazinger
2005-10-28Update/add scripts' copyrightPeter S. Mazinger
2002-10-28Add appropriate -I options so that any files included by unistd.h areMiles Bader
found correctly. Tweak the whitespace of the generated file.
2002-09-05Change <bits/syscall.h> to <bits/sysnum.h>.Miles Bader
2002-08-27Make sure that bits/syscalls.h always includes bits/syscall.hEric Andersen
-Erik
2002-07-22Rework syscall handling. Rewrite syscall handlers for x86 and ARM.Eric Andersen
Prepare to kill the UNIFIED_SYSCALL option and instead have it be a per arch thing that is either enabled or not for that arch. -Erik
2002-02-04Add include guardsEric Andersen
2001-10-12A small patch from Erwin Authried <eauth@softsys.co.at>Eric Andersen
*) changed ARM crt0.S / crt0pic.S selection -- depends on DOPIC now. *) Minor tweek to syscall definitions
2001-07-03Just take whatever the kernel headers gave us, spaces and all. This isEric Andersen
to accomodate arm, where rmk has made the syscall numbers be very very strangely setup, -Erik
2001-06-28Added a script to create bits/syscall.h for each arch.Manuel Novoa III
NOTE!!! This is run by "make -C libc/sysdeps/linux/$(TARGET_ARCH) headers" in the main Makefile, but I only changed libc/sysdeps/linux/i386/Makefile as I had no way of testing it for the other archs. Various arch maintainers, please check and update the corresponding Makefile... or report bugs ;-)... appropriately. You'll also want to "cvs del" syscall.h and add it to a .cvsignore in $(ARCH)/bits. Also added a define to uClibc_config.h, __UCLIBC_USE_UNIFIED_SYSCALL__, and moved i386 unified syscall stuff out of common and into i386/bits/syscalls.h.