Displaying 20 results from an estimated 1369 matches for "kbuild".
2019 Jan 20
0
[klibc:master] Build and install shared binaries only if KLIBCSHAREDFLAGS is defined
...ia64, and Debian has a
longstanding patch that changes the install targets to install static
binaries for ia64. This can be generalised to checking whether
KLIBCSHAREDFLAGS is defined, as without that we can't expect to build
a working shared library.
* Include the necessary files in scripts/Kbuild.install so that
KLIBCSHAREDFLAGS is defined at install time.
* Install static binaries instead of shared if KLIBCSHAREDFLAGS is
not defined.
* Only install the shared library if KLIBCSHAREDFLAGS is defined.
* Only build the shared library and binaries if KLIBCSHAREDFLAGS is
defined.
Signed-o...
2005 Jul 26
2
[PATCH] better kbuild integration
Following patch improves integration with kbuild.
With a future kernel (2.6.14-rc) it now has working support
for 'make clean'.
Included is an example of how to compile an early userspace program.
I selected gzip as the most simple one for this - and left out all
the links to different names (gunzip etc.)
Before proceeding with this I ne...
2005 Jul 30
3
kbuild updates to klibc
Hi Peter & others.
Here are three patches that does the following:
#1 - Update kbuild part of klibc so make clean works
Adds gzip including a sample kbuild file
#2 - Factor out definition of usr/ to two variables
#3 - Move kbuild files to reflect location in the kernel
As requested in earlier mail I need a bit of guidiance of what you
expect from the kernel integrated parts of...
2005 Jul 31
5
Shared versus static linked executables - and strip
I'm still pondering with kbuild and klibc.
Next in line was to get ipconfig support in the kernel (build wise).
A little challenge that is bigger than anticipated was to create
a shared executable. This required a far bigger rewrite of Kbuild.klibc
than originally planned. The good part is that I now managed to treat
linking of...
2020 Aug 29
0
[klibc:riscv64-enable-relax] Kbuild, klcc: Support multiple objects in KLIBCCRTSHARED
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=95a3123c94abc28c65f33c9589693dde9f140fe1
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Sat, 29 Aug 2020 22:29:52 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 29 Aug 2020 22:53:10 +0100
[klibc] Kbuild, klcc: Support multiple objects in KLIBCCRTSHARED
On some architectures (notably riscv64) we need a wrapper for the main
function that is statically linked even when using a shared library.
* Allow architectures to override KLIBCCRTSHARED (they should always
append to it)
* Change klcc to use t...
2006 Jul 09
6
[PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory
...l .o file and the final AR then adds all .o files to create libc.a.
This patch introduce the infrastructure and converts x86_64 to use it.
And it breaks all other architectures...
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
---
This is as more a RFC than a real patch. It changes the kbuild part of
klibc to understand subdirectories when building the library.
My limited testing so far says that it works and it has solved
a few outstanding issues. Now for example touching SYSCALLS.def does
indeed cause a rebuild of klibc library _and_ all programs.
But it breaks all architectures in t...
2005 Jul 29
1
move kbuild files to reflect dir structure in kernel
To make it more obvious where the files are supposed to end up
move files so they reflect the directory structure in the kernel:
mkdir scripts
mv kernel/Kbuild.* scripts/
mkdir usr
mv kernel/Kbuild usr
rmdir kernel
Furthermore:
- updated cp-to-kernel to refelct new directory layout
- teach cp-to-kernel to place gzip right under usr/
- Add '#' in front of comment in usr/Kbuild
---
I assume cogito will see this as proper renames.
The file move was...
2006 Apr 17
0
[PATCH] kbuild: support single targets for klibc and klibc programs
With the following patch kbuild now supports:
make usr/dash/arith_yylex.i
make usr/klibc/umount.o
make usr/klibc/umount.s
Patch does also fix indention of CPP command
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
That was my number 5) item on the kbuild list (added by akpm).
Modulus the next bug hpa discover this sh...
2006 Apr 11
6
klibc kbuild status
...ist of issues that I hope to be addressed soon so
we are in even better shape for -mm inclusion.
1) rebuild initramfs when content changes.
> It is a simple matter of copying in usr/Makefile from the latest
> -linus kernel and replace the 10 first lines with the content from
> klibc Kbuild file.
2) havesyscalls.h is not deleted after make clean
3) dash, utils and friends are not rebuild when klibc library changes
4) dash builtins.o is rebuild at second make of klibc
I expect hpa to deal with 1).
And with some luck I have fixed 2), 3) and 4) tonight.
The good thing is that they al...
2005 Jul 28
0
[PATCH] Use KLIBSRC + KLIBINC consistent in kbuild files
Factor out all kernel specific path's (those containing usr/)
into two variables: KLIBSRC + KLIBINC. Set the variables
in a kernel spcific Kbuild file.
Sam
commit e6f989c1597a837f4aecbd11083697184c089611
tree 93f88d7564bb9e4d4bc95fd455b842d0bd0fdc54
parent 8151f4a98f82fba4fe3b949f49da4ab8bba71501
author Sam Ravnborg <sam@mars.(none)> Thu, 28 Jul 2005 23:36:07 +0200
committer Sam Ravnborg <sam@mars.(none)> Thu, 28 Jul 2005 23:...
2020 Jul 25
0
[klibc:master] Kbuild: add support for clang builds
.../git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9eddaf50ea1b837979e49f996a2609a012218837
Author: Bill Wendling <morbo at google.com>
AuthorDate: Sun, 29 Mar 2020 04:38:30 -0700
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 25 Jul 2020 20:45:34 +0100
[klibc] Kbuild: add support for clang builds
Add cc-name to klibc/scripts/Kbuild.include.
Make optimization flags not supported by clang conditional on cc-name.
Use "--print-file-name=include" and "--print-libgcc-file-name" when
using clang.
Use cc-option to enable compiler-specific flags....
2020 Mar 29
7
[kvm-unit-tests PATCH v3 0/4] Update patch set
- Renamed IMAGE_BASE to LD_IMAGE_BASE_OPT.
- Moved "-fcommon" to KLIBCREQFLAGS in scripts/Kbuild.klibc.
- Remove "dash" warning fixes which have been upstreamed.
- Conditionalize the inclusion of compiler flags by using the proper
compiler name or "cc-option".
- Added "-Werror" to "cc-option" to catch flags that cause warnings.
- Retain "-nostdinc...
2005 Aug 07
0
kbuild: add klibc/tests
kbuild: add klibc/tests to kbuild
Add a kbuild file so we now can build the test programs.
A new dedicated target is used:
make test
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
commit 5492ae07007399d8838dea5f44b3d9cf3603abc3
tree 4339d2d3aa0e80bc81ac0cd8ca3b7c89486b2150
parent 64dda666c0...
2020 Mar 29
0
[kvm-unit-tests PATCH v3 1/4] Kbuild: add support for clang builds
Add cc-name to klibc/scripts/Kbuild.include.
Make optimization flags not supported by clang conditional on cc-name.
Use "--print-file-name=include" and "--print-libgcc-file-name" when
using clang.
Use cc-option to enable compiler-specific flags.
Mark "bcmp" as not a builtin to prevent clang from usin...
2006 Apr 09
0
[PATCH] kbuild: fix usr/Kbuild to use new usr/gen_initramfs.sh
Fix usr/Kbuild so it utilise the new gen_initramfs.sh script
which will rebuild initramfs when the content has changed.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
usr/Kbuild | 74 +++++++++++++++++++----------------------------------------------
1 file changed, 22 insertions(+), 52 deletions(-)...
2005 Jul 31
0
[patch] kbuild: build all targets in gzip
The gzip program had a few aliases - using ln to reach them.
Build these.
Also introduce gzip.stripped since it was present in the original
Makefile.
To support this a few new rules was added to scripts/Kbuild.klibc
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
commit e7daa9d72c3c7ea2cf23ff34bf601989ced7c6e1
tree 15adb0ed586e264a41fc4b419a71d903faa1a9ca
parent 6b1838e0265930a078ab79815dfa8fe86102a562
author Sam Ravnborg <sam@mars.(none)> Sun, 31 Jul 2005 13:51:43 +0200
committer Sam Rav...
2016 Nov 08
4
[PATCH] drm/nouveau: fix LEDS_CLASS=m configuration
...`nouveau_led_init'
This adds a separate Kconfig symbol for the LED support that
correctly tracks the dependencies.
Fixes: 8d021d71b324 ("drm/nouveau/drm/nouveau: add a LED driver for the NVIDIA logo")
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
---
drivers/gpu/drm/nouveau/Kbuild | 2 +-
drivers/gpu/drm/nouveau/Kconfig | 8 ++++++++
drivers/gpu/drm/nouveau/nouveau_led.h | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/Kbuild b/drivers/gpu/drm/nouveau/Kbuild
index fde6e3656636..5e00e911daa6 100644
--- a/drivers/gpu/...
2020 Feb 29
0
[klibc:master] Kbuild: Tell gas we don't want executable stacks
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9d8d648e604026b32cad00a84ed6c29cbd157641
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Sat, 29 Feb 2020 00:03:20 +0000
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 29 Feb 2020 00:11:26 +0000
[klibc] Kbuild: Tell gas we don't want executable stacks
The stack should be made non-executable, as a security hardening
measure. This is irrelevant for most of the klibc utilities, but
ipconfig deals with network input that might be untrusted. Since
Linux 5.6-rc1 the kernel now also warns (once) if a pro...
2020 Jul 25
0
[klibc:master] Revert " Kbuild: Tell gas we don't want executable stacks"
...?p=libs/klibc/klibc.git;a=commit;h=312b3d0a38ff2e43becd47cf1f4a930bc0c4b8e6
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Wed, 29 Apr 2020 22:24:33 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 25 Jul 2020 17:33:29 +0100
Revert "[klibc] Kbuild: Tell gas we don't want executable stacks"
This reverts commit 9d8d648e604026b32cad00a84ed6c29cbd157641, which
broke signal handing on some architectures.
On m68k and parisc, signal return depends on a trampoline that the
kernel writes on the stack. On alpha, s390, and sparc (32-bit), w...
2020 Jul 25
0
[klibc:master] Kbuild: Add a per-architecture option to disable exectable stacks
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=c562319cdba0102c3a8a8298ba94e645418193d5
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Wed, 29 Apr 2020 22:28:10 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 25 Jul 2020 17:33:29 +0100
[klibc] Kbuild: Add a per-architecture option to disable exectable stacks
We still want to avoid executable stacks, but now we will only do so
for architectures where we know we can avoid stack trampolines for
signal return.
Disable executable stacks only if KLIBCEXECSTACK is set to 'n' by the
architect...