Displaying 20 results from an estimated 123 matches for "addprefix".
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 objects with single and multiple .o files almost the same.
2005 Jul 29
1
move kbuild files to reflect dir structure in kernel
...en_init_cpio
-clean-files := initramfs_data.cpio.gz initramfs_list
-
-# Descend down into klibc when cleaning
-subdir- := klibc
-
-# Build klibc library
-$(obj)/klibc/libc.a: FORCE
- $(Q)$(MAKE) -rR -f $(srctree)/scripts/Kbuild.klibc obj=$(obj)/klibc
-
-initramfs-y += gzip
-
-initramfs-y := $(addprefix $(obj)/,$(initramfs-y))
-.PHONY: $(initramfs-y)
-
-# initramfs_data.o contains the initramfs_data.cpio.gz image.
-# The image is included using .incbin, a dependency which is not
-# tracked automatically.
-$(obj)/initramfs_data.o: $(obj)/initramfs_data.cpio.gz FORCE
-
-$(initramfs-y): $(obj)/klibc/...
2006 Jun 26
0
[klibc 19/43] klibc basic build infrastructure
...hat contain object files
+output-dirs := $(dir $(klibc-dirs) $(klibc-objs))
+output-dirs += $(foreach f, $(hostprogs-y) $(targets), \
+ $(if $(dir $(f)), $(dir $(f))))
+output-dirs := $(strip $(sort $(filter-out ./,$(output-dirs))))
+
+# prefix so we get full dir
+static-y := $(addprefix $(obj)/,$(static-y))
+shared-y := $(addprefix $(obj)/,$(shared-y))
+klibc-objs := $(addprefix $(obj)/,$(klibc-objs))
+klibc-real-objs := $(addprefix $(obj)/,$(klibc-real-objs))
+output-dirs := $(addprefix $(obj)/,$(output-dirs))
+klibc-dirs := $(addprefix $(obj)/,$(klibc-dirs))...
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 klibc.
2006 Jul 09
6
[PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory
...kprog-dirs) $(kprog-objs))
output-dirs += $(foreach f, $(hostprogs-y) $(targets), \
$(if $(dir $(f)), $(dir $(f))))
+output-dirs += $(klib-dirs)
output-dirs := $(strip $(sort $(filter-out ./,$(output-dirs))))
# prefix so we get full dir
@@ -160,9 +187,13 @@ kprog-real-objs := $(addprefix $(obj)/,$
output-dirs := $(addprefix $(obj)/,$(output-dirs))
kprog-dirs := $(addprefix $(obj)/,$(kprog-dirs))
subdir-y := $(addprefix $(obj)/,$(subdir-y))
-lib-y := $(addprefix $(obj)/,$(lib-y))
always := $(addprefix $(obj)/,$(always))
targets := $(ad...
2019 Jan 20
0
[klibc:master] Build and install kinit and sh without ".shared" suffix
...ed-y := sh.shared
-sh.shared-y := $(sh-y)
+shared-y := shared/sh
+shared/sh-y := $(static/sh-y)
# For cleaning
-targets := sh sh.g sh.shared sh.shared.g $(gen-o-files)
+targets := static/sh static/sh.g shared/sh shared/sh.g $(gen-o-files)
# explicit dependency for all generated files
-$(addprefix $(obj)/, $(sh-y)): $(addprefix $(obj)/, $(gen-h-files))
+$(addprefix $(obj)/, $(static/sh-y)): $(addprefix $(obj)/, $(gen-h-files))
# Generate token.h
targets += token.h
@@ -92,9 +92,12 @@ $(obj)/syntax.c: $(obj)/mksyntax
$(obj)/syntax.h: $(obj)/syntax.c
$(Q):
+# Clean deletes the static a...
2005 Dec 13
2
Parallel build of dash still fails
Building dash in parallel still fails:
GEN dash/builtins.def
HOSTCC dash/mkinit
HOSTCC dash/mknodes
HOSTCC dash/mksignames
HOSTCC dash/mksyntax
dash/mksignames.c:59: warning: function declaration isn?t a prototype
dash/mksignames.c:365: warning: function declaration isn?t a prototype
dash/mksignames.c:386: warning: function declaration isn?t a prototype
KLIBCCC
2006 Apr 17
0
[PATCH] klibc: generate havesyscall in $(objtree) with make O=..
...) allowing to pick up the
generated .h file in $(objtree)
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index e7b3fcf..1030a97 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -157,9 +157,19 @@ lib-y := $(addprefix $(obj)/,$
always := $(addprefix $(obj)/,$(always))
targets := $(addprefix $(obj)/,$(targets))
+#####
+# Handle options to gcc. Support building with separate output directory
+
+__klibccflags = $(KLIBCCFLAGS) $(EXTRA_KLIBCCFLAGS) $(KLIBCCFLAGS_$(*F).o)
+__klibcaflags = $(...
2013 Sep 04
2
opus code optimization
The opus code default compiles on -o2 optimization level. I would like to
change it to -o3. I have tried doing the changes in makefile.unix . The
change is not getting reflected. I am building the code in Code composer
studio for TI processor C6000. Could anybody help me with this
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2003 Oct 04
0
klibc: kbuild improvements
...# User defined commands...
# ==========================================================================
-$(build-multi) : %: $(build-y) FORCE
+$(build-multi): FORCE
$(call if_changed,$(subst $(obj)/,,$@))
# Compile userspace programs for the target
@@ -81,18 +81,38 @@
user-progs := $(addprefix $(obj)/,$(user-progs))
user-single := $(user-progs)
+__build : $(user-progs)
quiet_cmd_user-ld-single = USERLD $@
cmd_user-ld-single = $(USERLD) $(USERLDFLAGS) -o $@ \
- $(USERCRT0) $< $(USERLIBC) $(USERLIBGCC); \
+ --start-group \
+ $(filter-out FORCE,$^)...
2006 Apr 11
6
klibc kbuild status
Hi hpa & others.
Following is a list 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
2007 Aug 21
1
[git patch] dmesg + fstype ocfs2
...--- a/usr/utils/Kbuild
+++ b/usr/utils/Kbuild
@@ -4,7 +4,7 @@
progs := chroot dd mkdir mkfifo mknod mount pivot_root umount
progs += true false sleep ln nuke minips cat
-progs += insmod uname halt kill readlink cpio sync
+progs += insmod uname halt kill readlink cpio sync dmesg
static-y := $(addprefix static/, $(progs))
shared-y := $(addprefix shared/, $(progs))
@@ -14,6 +14,8 @@ static/chroot-y := chroot.o
shared/chroot-y := chroot.o
static/dd-y := dd.o
shared/dd-y := dd.o
+static/dmesg-y := dmesg.o
+shared/dmesg-y := dmesg.o
static/mkdir-y := mkdir.o...
2019 Jan 25
0
[klibc:update-dash] dash: Change mktokens back to creating token.h itself
...by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/Kbuild | 2 +-
usr/dash/mktokens | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/dash/Kbuild b/usr/dash/Kbuild
index c0f8dcb5..23809a3a 100644
--- a/usr/dash/Kbuild
+++ b/usr/dash/Kbuild
@@ -38,7 +38,7 @@ $(addprefix $(obj)/, $(static/sh-y)): $(addprefix $(obj)/, $(gen-h-files))
# Generate token.h
targets += token.h
quiet_cmd_mktokens = GEN $@
- cmd_mktokens = sh $< > $@
+ cmd_mktokens = (cd $(obj) && sh $(srctree)/$(src)/mktokens)
$(obj)/token.h: $(src)/mktokens
$(call if_chan...
2008 Sep 11
0
[PATCH] [UPDATE] stubdom: compile stubdom with qemu-remote
....PHONY: $(CROSS_ROOT)
$(CROSS_ROOT): cross-newlib cross-zlib cross-libpci
-mk-headers-$(XEN_TARGET_ARCH):
+$(XEN_ROOT)/tools/ioemu-dir:
+ make -C $(XEN_ROOT)/tools ioemu-dir-find
+
+mk-headers-$(XEN_TARGET_ARCH): $(XEN_ROOT)/tools/ioemu-dir
mkdir -p include/xen && \
ln -sf $(addprefix ../../,$(wildcard $(XEN_ROOT)/xen/include/public/*.h)) include/xen && \
ln -sf $(addprefix ../../$(XEN_ROOT)/xen/include/public/,arch-ia64 arch-x86 hvm io xsm) include/xen && \
@@ -189,7 +190,7 @@ ifeq ($(CONFIG_QEMU),ioemu)
ln -sf ../$(XEN_ROOT)/tools/ioemu/* .)
els...
2008 Jul 10
2
[PATCH] PV-GRUB: xfs support
PV-GRUB: xfs support
i386 doesn''t have PAE anyway.
Index: fsys_xfs.c
===================================================================
RCS file: /sources/grub/grub/stage2/fsys_xfs.c,v
retrieving revision 1.5
diff -u -p -r1.5 fsys_xfs.c
--- fsys_xfs.c 8 May 2005 02:18:14 -0000 1.5
+++ fsys_xfs.c 10 Jul 2008 13:09:50 -0000
@@ -101,7 +101,7 @@ static inline __const__ xfs_uint16_t
le16
2020 Mar 28
0
[klibc:update-dash] dash: Change mktokens back to creating token.h itself
...ent.org.uk>
---
usr/dash/Kbuild | 2 +-
usr/dash/README.dash | 1 -
usr/dash/mktokens | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/usr/dash/Kbuild b/usr/dash/Kbuild
index c0f8dcb5..23809a3a 100644
--- a/usr/dash/Kbuild
+++ b/usr/dash/Kbuild
@@ -38,7 +38,7 @@ $(addprefix $(obj)/, $(static/sh-y)): $(addprefix $(obj)/, $(gen-h-files))
# Generate token.h
targets += token.h
quiet_cmd_mktokens = GEN $@
- cmd_mktokens = sh $< > $@
+ cmd_mktokens = (cd $(obj) && sh $(srctree)/$(src)/mktokens)
$(obj)/token.h: $(src)/mktokens
$(call if_chan...
2016 Mar 05
2
build problems with 6.04-pre1
...GS = $(GCCWARN) -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \
$(OPTFLAGS) $(INCLUDES)
LDFLAGS =
--- syslinux-6.04-pre1-BROKEN/utils/Makefile.ORIG 2016-03-04 17:21:56.879041790 +0100
+++ syslinux-6.04-pre1-BROKEN/utils/Makefile 2016-03-04 17:24:16.387537657 +0100
@@ -28,17 +28,17 @@ ASIS = $(addprefix $(SRC)/,keytab-lilo
TARGETS = $(C_TARGETS) $(SCRIPT_TARGETS)
-ISOHDPFX = $(addprefix $(OBJ)/,../mbr/isohdpfx.bin ../mbr/isohdpfx_f.bin \
- ../mbr/isohdpfx_c.bin \
- ../mbr/isohdppx.bin ../mbr/isohdppx_f.bin ../mbr/isohdppx_c.bin)
+ISOHDPFX = $(addprefix $(OBJ)/,../bios/mbr/isohdpfx.bin ....
2012 Feb 10
6
[PATCH v2 0/3] hvmloader: Make ROM dependencies optional
This patch set mainly allows the user to build a seabios or rombios only
version of hvmloader.
In addition, when building a seabios only hvmloader, Option ROMs like
vgabios and etherboot are no longer required, and therefore can be disabled
from the build. Dependency on the bcc compiler can also be avoided the
same way.
v2: Separate patches for separate issues
Introduced config option to
2010 Aug 05
2
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
...lags += $(RPATH) -Wl,'$$ORIGIN'
else
ifneq ($(DARWIN_MAJVERS),4)
- LD.Flags += $(RPATH) -Wl,$(LibDir)
+ LD.Flags += $(RPATH) -Wl,$(SharedDir)
+endif
endif
endif
endif
@@ -960,6 +976,13 @@ LLVMUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
endif
+# Win32.DLL may refer to other components.
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
+ ifdef LOADABLE_MODULE
+ LINK_COMPONENTS := all
+ endif
+endif
+
ifndef IS_CLEANING_TARGET
ifdef LINK_COMPONENTS
@@ -972,8 +995,13 @@ $(LLVM_CONFIG):...
2006 Apr 17
0
[PATCH] klibc: rebuild cpio image when content changes
...cf9 100644
--- a/usr/Kbuild
+++ b/usr/Kbuild
@@ -8,21 +8,38 @@ export KLIBCINC := $(srctree)/$(src)/inc
export KLIBCOBJ := $(objtree)/$(obj)/klibc
CONFIG_KLIBC := 1
+klibc-subdir := klibc
+usr-subdirs := kinit utils dash gzip
+subdir- := $(klibc-subdir) $(usr-subdirs)
+
+usr-subdirs := $(addprefix _usr_,$(usr-subdirs))
+klibc-subdir := $(addprefix _usr_,$(klibc-subdir))
+
# Klibc binaries
ifdef CONFIG_KLIBC
klibc := -f $(srctree)/scripts/Kbuild.klibc obj
+
+# .initramfs_data.cpio.gz.d is used to identify all files included
+# in initramfs and to detect if any files are added/removed.
+# R...