Displaying 5 results from an estimated 5 matches for "userldflags".
2003 Oct 04
0
klibc: kbuild improvements
...CE
$(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,$^) \
+ --end-group $(USERLIBGCC); \
$(USERSTRIP) $(USERSTRIPFLAGS) $@
-$(user-single): %: %.o FORCE
+$(user-single): %: %.o $(USERCRT0) $(USERLIBC) FORCE...
2005 Jul 29
1
move kbuild files to reflect dir structure in kernel
...gets += $(real-objs-y)
-
-#
-# Rule to compile a set of .o files into one .o file
-#
-ifdef builtin-target
-quiet_cmd_link_o_target = LD $@
-# If the list of objects to link is empty, just create an empty built-in.o
-cmd_link_o_target = $(if $(strip $(obj-y)),\
- $(USERLD) $(USERLDFLAGS) -r -o $@ $(filter $(obj-y), $^),\
- rm -f $@; $(AR) rcs $@)
-
-$(builtin-target): $(obj-y) FORCE
- $(call if_changed,link_o_target)
-targets += $(builtin-target)
-endif # builtin-target
-
-
-ifdef user-progs
-# Compile userspace programs for the target
-# =======================...
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 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.
2005 Jul 26
2
[PATCH] better kbuild integration
...rip-all -R .comment -R .note
@@ -201,6 +201,7 @@ __build : $(user-dirs) $(user-progs)
# Descend if needed
$(sort $(addsuffix /built-in.o,$(user-dirs))): $(user-dirs) ;
+# link program that has only a single .o file
quiet_cmd_user-ld-single = USERLD $@
cmd_user-ld-single = $(USERLD) $(USERLDFLAGS) -o $@ \
$(USERCRT0) $< \
@@ -214,6 +215,7 @@ $(user-single): %: %.o $(USERCRT0) $(USE
targets += $(user-single) $(user-single:=.o)
+# link programs that consist of more than one .o file
multi-deps = $($(subst $(obj)/,,$@-y))
link-mult...