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: Makefile
===================================================================
--- Makefile	(nonexistent)
+++ Makefile	(revision 5)
@@ -0,0 +1,59 @@
+
+COMPONENT_TARGETS = $(HARDWARE_BUILD)
+
+include ../../../../../../build-system/constants.mk
+
+SOURCE_REQUIRES = build-system/3pp/sources/packages/python-modules/pip
+
+REQUIRES  = build-system/3pp/app/python3-modules/m2crypto/0.38.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+version         = 22.2.2
+tar_gz_archive  = $(BUILDSYSTEM)/3pp/sources/packages/python-modules/pip/pip-$(version).tar.gz
+SRC_ARCHIVE     = $(tar_gz_archive)
+SRC_DIR         = $(TARGET_BUILD_DIR)/pip-$(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
+
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILDSYSTEM)/usr/bin/python3 setup.py egg_info ; \
+	   $(BUILDSYSTEM)/usr/bin/python3 setup.py build ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@echo -e "\n======= Installing setuptools-$(version) =======\n"
+	@( cd $(SRC_DIR) ; \
+	   $(BUILDSYSTEM)/usr/bin/python3 setup.py install --root=/ ; \
+	 )
+	@echo -e "\n======= Install Python3 wheel, PLY, pygments, cryptography packages =======\n"
+	@( cd $(BUILDSYSTEM)/usr/bin ; \
+	   rm -f pip ; ln -sf pip2 pip ; \
+	   ./pip3.10 install --upgrade wheel        2>/dev/null ; \
+	   ./pip3.10 install --upgrade ply          2>/dev/null ; \
+	   ./pip3.10 install --upgrade pygments     2>/dev/null ; \
+	   ./pip3.10 install --upgrade cryptography 2>/dev/null ; \
+	   ./pip3.10 install --upgrade mako         2>/dev/null ; \
+	 )
+	@echo -e "\n======= Setup PIP3 build-system variable =======\n"
+	@mkdir -p $(BUILDSYSTEM)/sbin && \
+	  echo "PIP3               := $(BUILDSYSTEM)/usr/bin/pip3"    >> $(BUILDSYSTEM)/sbin/.config
+	@touch $@