svn commit: trunk/busybox

vapier at busybox.net vapier at busybox.net
Fri Apr 21 01:18:08 UTC 2006


Author: vapier
Date: 2006-04-20 18:18:07 -0700 (Thu, 20 Apr 2006)
New Revision: 14931

Log:
2006-04-20  Shaun Jackman  <sjackman at gmail.com>
        * Makefile: Build a bFLT binary.
        * Rules.mak: Ditto.


Modified:
   trunk/busybox/Makefile
   trunk/busybox/Rules.mak


Changeset:
Modified: trunk/busybox/Makefile
===================================================================
--- trunk/busybox/Makefile	2006-04-21 00:40:35 UTC (rev 14930)
+++ trunk/busybox/Makefile	2006-04-21 01:18:07 UTC (rev 14931)
@@ -305,6 +305,9 @@
 	$(Q)cp busybox_unstripped busybox
 	$(do_strip)
 
+%.bflt: %_unstripped
+	$(do_elf2flt)
+
 busybox.links: $(top_srcdir)/applets/busybox.mkll include/bb_config.h $(top_srcdir)/include/applets.h
 	$(Q)-$(SHELL) $^ >$@
 

Modified: trunk/busybox/Rules.mak
===================================================================
--- trunk/busybox/Rules.mak	2006-04-21 00:40:35 UTC (rev 14930)
+++ trunk/busybox/Rules.mak	2006-04-21 01:18:07 UTC (rev 14931)
@@ -38,6 +38,7 @@
 LD             = $(CROSS)ld
 NM             = $(CROSS)nm
 STRIP          = $(CROSS)strip
+ELF2FLT        = $(CROSS)elf2flt
 CPP            = $(CC) -E
 SED           ?= sed
 
@@ -291,16 +292,19 @@
 pur_disp_strip     = echo "  "STRIP $(show_objs)
 pur_disp_link      = echo "  "LINK $(show_objs)
 pur_disp_ar        = echo "  "AR $(ARFLAGS) $(show_objs)
+pur_disp_elf2flt   = echo "  "ELF2FLT $(ELF2FLTFLAGS) $(show_objs)
 sil_disp_compile.c = true
 sil_disp_compile.h = true
 sil_disp_strip     = true
 sil_disp_link      = true
 sil_disp_ar        = true
+sil_disp_elf2flt   = true
 ver_disp_compile.c = echo $(cmd_compile.c)
 ver_disp_compile.h = echo $(cmd_compile.h)
 ver_disp_strip     = echo $(cmd_strip)
 ver_disp_link      = echo $(cmd_link)
 ver_disp_ar        = echo $(cmd_ar)
+ver_disp_elf2flt   = echo $(cmd_elf2flt)
 disp_compile.c     = $($(DISP)_disp_compile.c)
 disp_compile.h     = $($(DISP)_disp_compile.h)
 disp_strip         = $($(DISP)_disp_strip)
@@ -308,15 +312,18 @@
 disp_ar            = $($(DISP)_disp_ar)
 disp_gen           = $(SECHO) "  "GEN $@ ; true
 disp_doc           = $(SECHO) "  "DOC $(subst docs/,,$@) ; true
+disp_elf2flt       = $($(DISP)_disp_elf2flt)
 cmd_compile.c      = $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
 cmd_compile.h      = $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
 cmd_strip          = $(STRIPCMD) $@
 cmd_link           = $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS)
 cmd_ar             = $(AR) $(ARFLAGS) $@ $^
+cmd_elf2flt        = $(ELF2FLT) $(ELF2FLTFLAGS) $< -o $@
 compile.c          = @$(disp_compile.c) ; $(cmd_compile.c)
 compile.h          = @$(disp_compile.h) ; $(cmd_compile.h)
 do_strip           = @$(disp_strip)     ; $(cmd_strip)
 do_link            = @$(disp_link)      ; $(cmd_link)
 do_ar              = @$(disp_ar)        ; $(cmd_ar)
+do_elf2flt         = @$(disp_elf2flt)   ; $(cmd_elf2flt)
 
 .PHONY: dummy




More information about the busybox-cvs mailing list