Commit 48aade15 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Add a configure script for dracut.module/Makefile. Modify other files accordingly.

Note: For now, this configure script is very basic and non-standard.
parent 5302d2df
ifneq ($(MCA_PATH),)
$(info MCA_PATH = $(MCA_PATH))
$(info FLB_PATH = $(FLB_PATH))
endif
ifeq ($(MCA_PATH),)
MCA_PATH=/opt/dep--mca-static_1-1/
dev1=test
endif
ifeq ($(FLB_PATH),)
FLB_PATH=/opt/fluent-bit_1-1/
endif
MCA_PATH ?= %FLB_PATH%
FLB_PATH ?= %MCA_PATH%
DRACUT_MODULE_NAME=90metadata-collect
LOCAL_DRACUT_MODULE=$(DRACUT_MODULE_NAME)
.PHONY: all
all: dev 90metadata-collect/collect.sh 90metadata-collect/metadata-collect-agent 90metadata-collect/fluent-bit 90metadata-collect/fluentbit_wendelin.so 90metadata-collect/flb.conf
#all: dev 90metadata-collect/collect.sh 90metadata-collect/metadata-collect-agent 90metadata-collect/fluent-bit 90metadata-collect/fluentbit_wendelin.so 90metadata-collect/flb.conf
all: 90metadata-collect/collect.sh 90metadata-collect/metadata-collect-agent 90metadata-collect/fluent-bit 90metadata-collect/fluentbit_wendelin.so 90metadata-collect/flb.conf
dev:
@echo dev1 = $(dev1)
#dev:
# @echo dev1 = $(dev1)
90metadata-collect/collect.sh:
# different options are vailable: debug-and-scan, only-debug, only-scan
......
#!/bin/bash
# At the moment, this is not a standard configure script. It is only used to generate a makefile with the good package names.
source ../installation/packages.sh
FLB_PATH=/opt/${FLUENTBIT_NAME_AND_VERSION}
MCA_PATH=/opt/${MCA_NAME_AND_VERSION}
PACKAGE_REGEX="s|%FLB_PATH%|${FLB_PATH}|g;s|%MCA_PATH%|${MCA_PATH}|g"
sed ${PACKAGE_REGEX} Makefile.in > Makefile
set -e
ARCH=amd64
PACKAGE_EXTENSION=.deb
MCA_VERSION=dep--mca-static_1-1
FLUENTBIT_VERSION=fluent-bit_1-1
MCA_PACKAGE=${MCA_VERSION}_${ARCH}${PACKAGE_EXTENSION}
FLUENTBIT_PACKAGE=${FLUENTBIT_VERSION}_${ARCH}${PACKAGE_EXTENSION}
# initialize package name variables
source packages.sh
# basic and dirty detection of the working directory
# it assumes the script is called either from initramfs-with-mca/installation (where fluent-bit_1-1_amd64.deb is located)
......
......@@ -21,6 +21,7 @@ dracut_output_file=dracut-output
# Install the module
cd dracut.module
./configure
make uninstall
make install
cd -
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment