summaryrefslogtreecommitdiffstats
path: root/extras/rpm
AgeCommit message (Expand)AuthorFilesLines
2022-09-07build: Cleanup python2 from suse build and uplift opensuse versionLaszlo Kiraly2-5/+4
2022-04-18rpm-packaging: remove mbedtls dependencyFlorin Coras1-4/+2
2022-04-08build: opensuse: remove nasm, change to clangLaszlo Kiraly2-6/+5
2022-03-11tls: remove pkg dependencies on mbedtlsFlorin Coras1-1/+0
2021-11-30build rpm-packaging: Remove boost dependencies from VOMDave Wallace2-5/+2
2021-11-19build: (opensuse) Revert build remove opensuse build infraLaszlo Kiraly4-1/+436
2021-10-08build: fix centos rpm buildTianyu Li1-4/+4
2021-08-20build: include vat2 in RPM file listMatthew Smith1-0/+1
2020-12-14build: stop trying to build py2 versions of vpp_papiPaul Vinciguerra1-26/+0
2020-11-25api: vat2 and json autogeneration for api messagesOle Troan1-1/+2
2020-10-16misc: deprecate VOMDamjan Marion1-1/+1
2020-09-21build: touch files when extracting rpm tarballsDave Wallace1-2/+5
2020-09-21build: remove opensuse build infraDave Wallace2-336/+0
2020-09-15build: fix the the build on centos/rhel 8Yichen Wang1-2/+1
2020-05-07misc: deprecate elftoolDamjan Marion2-2/+0
2020-04-30build: rework x86 CPU variantsDamjan Marion1-2/+2
2020-03-06misc: Fix vpp-selinux-policy dependency on CentOS 8Renato Botelho do Couto1-1/+6
2019-12-17misc: Add CentOS 8 package supportRenato Botelho do Couto1-4/+10
2019-12-17build: export vapi generation in vpp-devOliver Giles1-0/+3
2019-08-12papi: Revert vpp-api-python to py2, add py3 pkgIan Wells1-2/+29
2019-07-12docs: how to enable coredump with systemdBenoît Ganne1-0/+5
2019-05-23rpm: VPP-1674: exclude external headers from rpmBenoît Ganne2-2/+2
2019-05-01Freshen RPM dependencies in vpp specfile.Thomas F Herbert1-19/+16
2019-03-06rpm: set exec bits on pluginsMatthew Smith1-3/+3
2019-02-19VPP-1504: Remove JVPPMichal Cmarada2-60/+1
2018-12-18Build changes required for Fedora and CentOSThomas F Herbert1-7/+8
2018-11-23Fix permission for vpp_papiOnong Tayeng1-1/+1
2018-09-26rpm: Fix the spec file to look into right directoriesMohsin Kazmi2-4/+4
2018-09-13Fix: vppapigen make build fails on fresh installPaul Vinciguerra1-2/+2
2018-09-12Always use 'lib' instead of 'lib64'Damjan Marion2-6/+6
2018-09-07update regex used by rpm build to find lib filesMatthew Smith1-1/+1
2018-09-02Switch to cmakeDamjan Marion2-8/+0
2018-08-30SUSE: fix spec to generate RPMsMarco Varlese1-27/+27
2018-08-21SUSE: rpm-packaging fixesMarco Varlese2-2/+9
2018-08-07PAPI: Move unit tests to fix packaging issues.Ole Troan1-1/+0
2018-08-03PAPI: Union pad at the end of short fields instead of at head.Ole Troan1-0/+1
2018-08-02Temporrary disable japi packaging for opensuseDamjan Marion1-26/+26
2018-08-01Move java api to extras/Damjan Marion2-6/+6
2018-07-10openSUSE: spec file update to reflect latest depsMarco Varlese1-5/+13
2018-06-22Python API: Add enum and union support.Ole Troan2-2/+2
2018-06-18Revert "Python API: Add enum and union support."Ole Trøan2-2/+2
2018-06-17Python API: Add enum and union support.Ole Troan2-2/+2
2018-05-19MLX DPDK glue: exclude dependency on OFED librariesIgor Mikhailov (imichail)1-0/+1
2018-05-04Add python lex and yacc to spec file build requirements.Thomas F Herbert1-3/+3
2018-04-08Restore building of debuginfo RPMsThomas F Herbert1-10/+2
2018-04-08Remove subunit from Centos requirements.Thomas F Herbert1-1/+2
2018-04-06Remove mbedtls from build requirement for CentosThomas F Herbert1-1/+2
2018-03-02Add RPM buildtime dependency on mbedtls-develMatthew Smith1-0/+1
2018-02-28Adjust vpp-selinux-policy postinstallMatthew Smith1-1/+1
2018-01-31RPMS: Also install C.py, JSON.py for vppapipgen.Jon Loeliger1-0/+3
- apply filter to test set, see test-help" @echo "" @echo "Current Argument Values:" @echo " V = $(V)" @echo " STARTUP_CONF = $(STARTUP_CONF)" @echo " STARTUP_DIR = $(STARTUP_DIR)" @echo " GDB = $(GDB)" @echo " PLATFORM = $(PLATFORM)" @echo " DPDK_VERSION = $(DPDK_VERSION)" $(BR)/.bootstrap.ok: ifeq ($(findstring y,$(UNATTENDED)),y) make install-dep endif ifeq ($(OS_ID),ubuntu) @MISSING=$$(apt-get install -y -qq -s $(DEB_DEPENDS) | grep "^Inst ") ; \ if [ -n "$$MISSING" ] ; then \ echo "\nPlease install missing packages: \n$$MISSING\n" ; \ echo "by executing \"make install-dep\"\n" ; \ exit 1 ; \ fi ; \ exit 0 endif @echo "SOURCE_PATH = $(WS_ROOT)" > $(BR)/build-config.mk @echo "#!/bin/bash\n" > $(BR)/path_setup @echo 'export PATH=$(BR)/tools/ccache-bin:$$PATH' >> $(BR)/path_setup @echo 'export PATH=$(BR)/tools/bin:$$PATH' >> $(BR)/path_setup @echo 'export CCACHE_DIR=$(CCACHE_DIR)' >> $(BR)/path_setup ifeq ("$(wildcard /usr/bin/ccache )","") @echo "WARNING: Please install ccache AYEC and re-run this script" else @rm -rf $(BR)/tools/ccache-bin @mkdir -p $(BR)/tools/ccache-bin @ln -s /usr/bin/ccache $(BR)/tools/ccache-bin/gcc @ln -s /usr/bin/ccache $(BR)/tools/ccache-bin/g++ endif @make -C $(BR) V=$(V) is_build_tool=yes tools-install @touch $@ bootstrap: $(BR)/.bootstrap.ok install-dep: ifeq ($(OS_ID),ubuntu) ifeq ($(OS_VERSION_ID),14.04) @sudo -E apt-get $(CONFIRM) $(FORCE) install software-properties-common @sudo -E add-apt-repository ppa:openjdk-r/ppa $(CONFIRM) endif @sudo -E apt-get update @sudo -E apt-get $(CONFIRM) $(FORCE) install $(DEB_DEPENDS) else ifneq ("$(wildcard /etc/redhat-release)","") @sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS) @sudo -E yum install $(CONFIRM) $(RPM_DEPENDS) @sudo -E yum install $(CONFIRM) --enablerepo=epel $(EPEL_DEPENDS) @sudo -E debuginfo-install $(CONFIRM) glibc-2.17-106.el7_2.4.x86_64 openssl-libs-1.0.1e-51.el7_2.4.x86_64 zlib-1.2.7-15.el7.x86_64 else $(error "This option currently works only on Ubuntu or Centos systems") endif define make @make -C $(BR) PLATFORM=$(PLATFORM) TAG=$(1) $(2) endef $(BR)/scripts/.version: ifneq ("$(wildcard /etc/redhat-release)","") $(shell $(BR)/scripts/version rpm-string > $(BR)/scripts/.version) else $(shell $(BR)/scripts/version > $(BR)/scripts/.version) endif dist: $(BR)/scripts/.version $(MAKE) verstring=$(PLATFORM)-$(shell cat $(BR)/scripts/.version) prefix=$(PLATFORM) distversion distversion: $(BR)/scripts/.version $(BR)/scripts/verdist ${BR} ${prefix}-$(shell $(BR)/scripts/version rpm-version) ${verstring} mv $(verstring).tar.gz $(BR)/rpm build: $(BR)/.bootstrap.ok $(call make,$(PLATFORM)_debug,vpp-install) wipedist: $(RM) $(BR)/scripts/.version $(BR)/rpm/*.tar.gz wipe: wipedist $(BR)/.bootstrap.ok $(call make,$(PLATFORM)_debug,vpp-wipe) rebuild: wipe build build-release: $(BR)/.bootstrap.ok $(call make,$(PLATFORM),vpp-install) wipe-release: $(BR)/.bootstrap.ok $(call make,$(PLATFORM),vpp-wipe) rebuild-release: wipe-release build-release export VPP_PYTHON_PREFIX=$(BR)/python define test $(if $(filter-out $(3),retest),make -C $(BR) PLATFORM=$(1) TAG=$(2) vpp-install,) make -C test \ VPP_TEST_BUILD_DIR=$(BR)/build-$(2)-native \ VPP_TEST_BIN=$(BR)/install-$(2)-native/vpp/bin/vpp \ VPP_TEST_PLUGIN_PATH=$(BR)/install-$(2)-native/vpp/lib64/vpp_plugins \ VPP_TEST_INSTALL_PATH=$(BR)/install-$(2)-native/ \ LD_LIBRARY_PATH=$(BR)/install-$(2)-native/vpp/lib64/ \ $(3) endef test: bootstrap $(call test,vpp_lite,vpp_lite,test) test-debug: bootstrap $(call test,vpp_lite,vpp_lite_debug,test) test-help: @make -C test help test-wipe: @make -C test wipe test-doc: @make -C test doc test-wipe-doc: @make -C test wipe-doc test-cov: bootstrap $(call test,vpp_lite,vpp_lite_gcov,cov) test-wipe-cov: @make -C test wipe-cov test-checkstyle: @make -C test checkstyle retest: $(call test,vpp_lite,vpp_lite,retest) retest-debug: $(call test,vpp_lite,vpp_lite_debug,retest) STARTUP_DIR ?= $(PWD) ifeq ("$(wildcard $(STARTUP_CONF))","") define run @echo "WARNING: STARTUP_CONF not defined or file doesn't exist." @echo " Running with minimal startup config: $(MINIMAL_STARTUP_CONF)\n" @cd $(STARTUP_DIR) && \ sudo $(2) $(1)/vpp/bin/vpp $(MINIMAL_STARTUP_CONF) plugin_path $(1)/vpp/lib64/vpp_plugins endef else define run @cd $(STARTUP_DIR) && \ sudo $(2) $(1)/vpp/bin/vpp $(shell cat $(STARTUP_CONF) | sed -e 's/#.*//') plugin_path $(1)/vpp/lib64/vpp_plugins endef endif %.files: .FORCE @find . \( -name '*\.[chyS]' -o -name '*\.java' -o -name '*\.lex' \) -and \ \( -not -path './build-root*' -o -path \ './build-root/build-vpp_debug-native/dpdk*' \) > $@ .FORCE: run: $(call run, $(BR)/install-$(PLATFORM)_debug-native) run-release: $(call run, $(BR)/install-$(PLATFORM)-native) debug: $(call run, $(BR)/install-$(PLATFORM)_debug-native,$(GDB) $(GDB_ARGS) --args) build-coverity: $(call make,$(PLATFORM)_coverity,install-packages) debug-release: $(call run, $(BR)/install-$(PLATFORM)-native,$(GDB) $(GDB_ARGS) --args) build-vat: $(call make,$(PLATFORM)_debug,vpp-api-test-install) run-vat: @sudo $(BR)/install-$(PLATFORM)_debug-native/vpp/bin/vpp_api_test pkg-deb: $(call make,$(PLATFORM),install-deb) pkg-rpm: dist $(call make,$(PLATFORM),install-rpm) dpdk-install-dev: make -C dpdk install-$(PKG) ctags: ctags.files @ctags --totals --tag-relative -L $< @rm $< gtags: ctags @gtags --gtagslabel=ctags cscope: cscope.files @cscope -b -q -v checkstyle: @build-root/scripts/checkstyle.sh fixstyle: @build-root/scripts/checkstyle.sh --fix # # Build the documentation # # Doxygen configuration and our utility scripts export DOXY_DIR ?= $(WS_ROOT)/doxygen define make-doxy @OS_ID="$(OS_ID)" make -C $(DOXY_DIR) $@ endef .PHONY: bootstrap-doxygen doxygen wipe-doxygen bootstrap-doxygen: $(call make-doxy) doxygen: $(call make-doxy) wipe-doxygen: $(call make-doxy) define banner @echo "========================================================================" @echo " $(1)" @echo "========================================================================" @echo " " endef verify: install-dep $(BR)/.bootstrap.ok dpdk-install-dev $(call banner,"Building for PLATFORM=vpp using gcc") @make -C build-root PLATFORM=vpp TAG=vpp wipe-all install-packages $(call banner,"Building for PLATFORM=vpp_lite using gcc") @make -C build-root PLATFORM=vpp_lite TAG=vpp_lite wipe-all install-packages ifeq ($(OS_ID)-$(OS_VERSION_ID),ubuntu-16.04) $(call banner,"Installing dependencies") @sudo -E apt-get update @sudo -E apt-get $(CONFIRM) $(FORCE) install clang $(call banner,"Building for PLATFORM=vpp using clang") @make -C build-root CC=clang PLATFORM=vpp TAG=vpp_clang wipe-all install-packages endif $(call banner,"Building $(PKG) packages") @make pkg-$(PKG) @make test