Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: Makefile
===================================================================
--- Makefile	(nonexistent)
+++ Makefile	(revision 410)
@@ -0,0 +1,65 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+
+include ../../../build-system/constants.mk
+
+# ======= __END_OF_REQUIRES__ =======
+
+bin_src = main.cpp
+
+bin_target = $(TARGET_BUILD_DIR)/main
+
+info_target = $(TARGET_BUILD_DIR)/.info-done
+
+BUILD_TARGETS = $(bin_target) $(info_target)
+
+#
+# The user may reject the sysroot usage. For this the user have to declare
+# the USE_TARGET_DEST_DIR_SYSROOT variable with value 'no':
+#
+#   USE_TARGET_DEST_DIR_SYSROOT = no
+#
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+include ../../../build-system/core.mk
+
+
+ARCH = $(shell echo $(TARGET) | cut -f1 -d'-')
+
+CXX     := $(shell $(LLVM_CONFIG) --bindir)/clang++
+LLD     := $(shell $(LLVM_CONFIG) --bindir)/lld
+SYSROOT := $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
+
+$(bin_target): $(bin_src)
+	@echo "======= Build the `basename $(bin_target)` executable: ======="
+	@$(CXX) --target=$(TARGET) \
+	   -B $(LLD) \
+	   --gcc-toolchain=$(TOOLCHAIN_PATH) \
+	   --gcc-triple=$(TARGET) \
+	   --sysroot=$(SYSROOT) \
+	   -stdlib=libstdc++ \
+	   -I$(SYSROOT)/usr/include \
+	   -Wl,-rpath,/usr/lib \
+	   $(bin_src) -o $(bin_target)
+	@touch $@
+
+$(info_target): $(bin_target)
+	@echo "==================================="
+	@echo "======= Environment:        ======="
+	@echo "==================================="
+	@echo "======= LLVM_CONFIG = '$(LLVM_CONFIG)'"
+	@echo "======= LLVM_PATH   = '$(LLVM_PATH)'"
+	@echo ""
+	@echo "#"
+	@echo "# Please find the `basename $(bin_target)` executable in the $(TARGET_BUILD_DIR)/ directory."
+	@echo "#"
+	@echo "# Run the `basename $(bin_target)` executable:"
+	@echo ""
+	@$(BUILDSYSTEM)/usr/bin/qemu-$(ARCH) \
+	   $(TOOLCHAIN_PATH)/$(TARGET)/sys-root/$(shell $(PATCHELF) --print-interpreter $(bin_target) | sed 's,^\/,,') \
+	   --library-path $(TOOLCHAIN_PATH)/$(TARGET)/lib:$(TOOLCHAIN_PATH)/$(TARGET)/sys-root/lib:$(TOOLCHAIN_PATH)/$(TARGET)/sys-root/usr/lib \
+	   $(bin_target)
+	@echo ""
+	@touch $@
Index: main.cpp
===================================================================
--- main.cpp	(nonexistent)
+++ main.cpp	(revision 410)
@@ -0,0 +1,9 @@
+
+// Your First C++ Program
+
+#include <iostream>
+
+int main() {
+    std::cout << "Hello World!\n";
+    return 0;
+}
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 410)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~