Radix cross Linux Build System

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

39 Commits   2 Branches   2 Tags
Index: 3pp/app/qemu/8.0.2/Makefile
===================================================================
--- 3pp/app/qemu/8.0.2/Makefile	(nonexistent)
+++ 3pp/app/qemu/8.0.2/Makefile	(revision 20)
@@ -0,0 +1,98 @@
+
+COMPONENT_TARGETS = $(HARDWARE_BUILD)
+
+include ../../../../../build-system/constants.mk
+
+SOURCE_REQUIRES = build-system/3pp/sources/packages/qemu
+
+# ======= __END_OF_REQUIRES__ =======
+
+version         = 8.0.2
+tar_xz_archive  = $(BUILDSYSTEM)/3pp/sources/packages/qemu/qemu-$(version).tar.xz
+SRC_ARCHIVE     = $(tar_xz_archive)
+SRC_DIR         = $(TARGET_BUILD_DIR)/qemu-$(version)
+src_done        = $(TARGET_BUILD_DIR)/.source-done
+
+build_dir       = $(TARGET_BUILD_DIR)/build
+src_dir         = qemu-$(version)
+
+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
+
+
+environment     =
+
+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 += --sysconfdir=$(BUILDSYSTEM)/usr/etc
+extra_configure_switches += --libexecdir=$(BUILDSYSTEM)/usr/libexec
+extra_configure_switches += --localstatedir=$(BUILDSYSTEM)/var
+
+extra_configure_switches += --enable-attr
+extra_configure_switches += --enable-linux-user
+extra_configure_switches += --enable-tcg
+extra_configure_switches += --disable-bpf
+extra_configure_switches += --disable-bsd-user
+extra_configure_switches += --disable-capstone
+extra_configure_switches += --disable-docs
+extra_configure_switches += --disable-fdt
+extra_configure_switches += --disable-fuse
+extra_configure_switches += --disable-gcrypt
+extra_configure_switches += --disable-glusterfs
+extra_configure_switches += --disable-gnutls
+extra_configure_switches += --disable-gtk
+extra_configure_switches += --disable-install-blobs
+extra_configure_switches += --disable-kvm
+extra_configure_switches += --disable-libiscsi
+extra_configure_switches += --disable-libnfs
+extra_configure_switches += --disable-libssh
+extra_configure_switches += --disable-linux-io-uring
+extra_configure_switches += --disable-nettle
+extra_configure_switches += --disable-opengl
+extra_configure_switches += --disable-qom-cast-debug
+extra_configure_switches += --disable-sdl
+extra_configure_switches += --disable-system
+extra_configure_switches += --disable-tools
+extra_configure_switches += --disable-tpm
+extra_configure_switches += --disable-vde
+extra_configure_switches += --disable-vhost-crypto
+extra_configure_switches += --disable-vhost-kernel
+extra_configure_switches += --disable-vhost-net
+extra_configure_switches += --disable-vhost-user
+extra_configure_switches += --disable-vnc
+extra_configure_switches += --disable-werror
+extra_configure_switches += --disable-xen
+extra_configure_switches += --disable-zstd
+
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(environment) ../$(src_dir)/configure \
+	  --prefix=$(BUILDSYSTEM)/usr \
+	  --build=$(BUILD) \
+	  --host=$(BUILD)  \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && ninja
+	@touch $@
+
+$(install_target): $(build_target)
+	@echo -e "\n======= Installing Qemu $(version) binary =======\n"
+	@cd $(build_dir) && ninja install
+	@touch $@
Index: 3pp/app/qemu/8.0.2/PATCHES
===================================================================
Index: 3pp/app/qemu/8.0.2
===================================================================
--- 3pp/app/qemu/8.0.2	(nonexistent)
+++ 3pp/app/qemu/8.0.2	(revision 20)

Property changes on: 3pp/app/qemu/8.0.2
___________________________________________________________________
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: 3pp/sources/packages/qemu/Makefile
===================================================================
--- 3pp/sources/packages/qemu/Makefile	(nonexistent)
+++ 3pp/sources/packages/qemu/Makefile	(revision 20)
@@ -0,0 +1,48 @@
+
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
+
+
+include ../../../../../build-system/constants.mk
+
+
+url         = $(DOWNLOAD_SERVER)/sources/packages/a/qemu
+
+
+versions    = 8.0.2
+pkgname     = qemu
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+BUILD_TARGETS = $(tarballs) $(sha1s)
+
+
+include ../../../../../build-system/core.mk
+
+
+.PHONY: download_clean
+
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n" ; \
+	 for tarball in $(tarballs) ; do \
+	   echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
+	 done ; wait
+
+$(sha1s): $(tarballs)
+	@for sha in $@ ; do \
+	   echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+	   echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
+	   touch $$sha ; \
+	   echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+	   sha1sum --check $$sha ; ret="$$?" ; \
+	   if [ "$$ret" == "1" ]; then \
+	     echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+	     exit 1 ; \
+	   fi ; \
+	 done
+
+download_clean:
+	@rm -f $(tarballs) $(sha1s)
Index: 3pp/sources/packages/qemu
===================================================================
--- 3pp/sources/packages/qemu	(nonexistent)
+++ 3pp/sources/packages/qemu	(revision 20)

Property changes on: 3pp/sources/packages/qemu
___________________________________________________________________
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: Makefile
===================================================================
--- Makefile	(revision 19)
+++ Makefile	(revision 20)
@@ -13,6 +13,7 @@
 REQUIRES += build-system/3pp/app/perl/5.36.0
 REQUIRES += build-system/3pp/app/po4a/0.68
 REQUIRES += build-system/3pp/app/ruby/3.2.0
+REQUIRES += build-system/3pp/app/qemu/8.0.2
 REQUIRES += build-system/progs
 
 # ======= __END_OF_REQUIRES__ =======