Radix cross Linux Build System

Cross-platform build system is designed to build distributions of different operating systems for a set of target devices

74 Commits   2 Branches   2 Tags
Index: 3.2.0/Makefile
===================================================================
--- 3.2.0/Makefile	(nonexistent)
+++ 3.2.0/Makefile	(revision 5)
@@ -0,0 +1,61 @@
+
+COMPONENT_TARGETS = $(HARDWARE_BUILD)
+
+include ../../../../../build-system/constants.mk
+
+SOURCE_REQUIRES = build-system/3pp/sources/packages/ruby
+
+# ======= __END_OF_REQUIRES__ =======
+
+version         = 3.2.0
+tar_xz_archive  = $(BUILDSYSTEM)/3pp/sources/packages/ruby/ruby-$(version).tar.xz
+SRC_ARCHIVE     = $(tar_xz_archive)
+SRC_DIR         = $(TARGET_BUILD_DIR)/ruby-$(version)
+src_done        = $(TARGET_BUILD_DIR)/.source-done
+
+PATCHES = PATCHES
+
+build_target    = $(TARGET_BUILD_DIR)/.built
+install_target  = $(TARGET_BUILD_DIR)/.installed
+
+BUILD_TARGETS   = $(build_target)
+BUILD_TARGETS  += $(install_target)
+
+
+include ../../../../../build-system/core.mk
+
+
+LDFLAGS    += -Wl,-rpath,$(BUILDSYSTEM)/usr/lib
+
+extra_configure_switches  = --libdir=$(BUILDSYSTEM)/usr/lib
+extra_configure_switches += --bindir=$(BUILDSYSTEM)/usr/bin
+extra_configure_switches += --docdir=$(BUILDSYSTEM)/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=$(BUILDSYSTEM)/usr/share/man
+extra_configure_switches += --datadir=$(BUILDSYSTEM)/usr/share
+extra_configure_switches += --with-ruby-version=$(version)
+extra_configure_switches += --enable-shared
+extra_configure_switches += --enable-pthread
+extra_configure_switches += --disable-install-capi
+
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && ./configure \
+	  --prefix=$(BUILDSYSTEM)/usr \
+	  --build=$(BUILD) \
+	  --host=$(BUILD)  \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@echo -e "\n======= Installing Ruby $(version) binary =======\n"
+	@cd $(SRC_DIR) && $(MAKE) -j1 install
+	@echo -e "\n======= Setup RUBY build-system variable =======\n"
+	@mkdir -p $(BUILDSYSTEM)/sbin && \
+	  echo "RUBY               := $(BUILDSYSTEM)/usr/bin/ruby" >> $(BUILDSYSTEM)/sbin/.config
+	@touch $@
Index: 3.2.0/PATCHES
===================================================================
Index: 3.2.0
===================================================================
--- 3.2.0	(nonexistent)
+++ 3.2.0	(revision 5)

Property changes on: 3.2.0
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,51 ##
+
+# local config & object files
+build-config.mk
+sbin
+usr
+var
+
+# configure targets
+autom4te.cache
+.config
+config.log
+config.status
+configure
+
+# cpan configure targets
+.installed
+CPAN-Config.pm
+CPAN-install
+
+# Target build dirs
+.build-machine
+
+# Timestamps
+.makefile
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Object Files
+*.[ao]
+
+# backup copies
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,51 ##
+
+# local config & object files
+build-config.mk
+sbin
+usr
+var
+
+# configure targets
+autom4te.cache
+.config
+config.log
+config.status
+configure
+
+# cpan configure targets
+.installed
+CPAN-Config.pm
+CPAN-install
+
+# Target build dirs
+.build-machine
+
+# Timestamps
+.makefile
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Object Files
+*.[ao]
+
+# backup copies
+*~