public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH 2/2] amazon-ssm-agent: Enable build for aarch64
Date: Tue, 09 Aug 2022 10:27:11 +0000	[thread overview]
Message-ID: <2c3e8abf-79ab-c556-ec7c-afd3caa643d4@ipfire.org> (raw)
In-Reply-To: <20220808202824.1120321-2-michael.tremer@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 2504 bytes --]

Reviewed-by: Peter Müller <peter.mueller(a)ipfire.org>

> Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
> ---
>  .../packages/aarch64/amazon-ssm-agent         |  1 +
>  lfs/amazon-ssm-agent                          | 21 ++++++++++++-------
>  2 files changed, 15 insertions(+), 7 deletions(-)
>  create mode 120000 config/rootfiles/packages/aarch64/amazon-ssm-agent
> 
> diff --git a/config/rootfiles/packages/aarch64/amazon-ssm-agent b/config/rootfiles/packages/aarch64/amazon-ssm-agent
> new file mode 120000
> index 000000000..3acbdf17c
> --- /dev/null
> +++ b/config/rootfiles/packages/aarch64/amazon-ssm-agent
> @@ -0,0 +1 @@
> +../x86_64/amazon-ssm-agent
> \ No newline at end of file
> diff --git a/lfs/amazon-ssm-agent b/lfs/amazon-ssm-agent
> index 8779908d8..ee13a904b 100644
> --- a/lfs/amazon-ssm-agent
> +++ b/lfs/amazon-ssm-agent
> @@ -27,7 +27,7 @@ include Config
>  SUMMARY    = Amazon Remote System Config Management
>  
>  VER        = 3.0.356.0
> -SUP_ARCH   = x86_64
> +SUP_ARCH   = aarch64 x86_64
>  
>  THISAPP    = amazon-ssm-agent-$(VER)
>  DL_FILE    = $(THISAPP).tar.gz
> @@ -96,8 +96,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>  	cd $(DIR_BUILD) && sed -e "/localpackages/d" \
>  		-i agent/plugins/inventory/gatherers/application/dataProvider.go
>  
> +	# Cleanup anything shipped
> +	cd $(DIR_BUILD) && make clean
> +
>  	# Build
> +ifeq "$(BUILD_ARCH)" "aarch64"
> +	cd $(DIR_BUILD) && make build-arm64
> +else
>  	cd $(DIR_BUILD) && make build-linux
> +endif
>  
>  	# Remove some temporary files (no idea why those are being created)
>  	rm -rfv /usr/lib/go/pkg/linux_$(GOARCH)_shared
> @@ -105,12 +112,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>  	# Install
>  	mkdir -pv /etc/amazon/ssm /usr/bin /var/lib/amazon/ssm
>  	cd $(DIR_BUILD) && install -v -m 755 \
> -		bin/linux_amd64/amazon-ssm-agent \
> -		bin/linux_amd64/ssm-agent-worker \
> -		bin/linux_amd64/ssm-cli \
> -		bin/linux_amd64/ssm-document-worker \
> -		bin/linux_amd64/ssm-session-worker \
> -		bin/linux_amd64/ssm-session-logger \
> +		bin/linux_$(GOARCH)/amazon-ssm-agent \
> +		bin/linux_$(GOARCH)/ssm-agent-worker \
> +		bin/linux_$(GOARCH)/ssm-cli \
> +		bin/linux_$(GOARCH)/ssm-document-worker \
> +		bin/linux_$(GOARCH)/ssm-session-worker \
> +		bin/linux_$(GOARCH)/ssm-session-logger \
>  		/usr/bin
>  	cd $(DIR_BUILD) && install -v -m 644 \
>  		seelog_unix.xml /etc/amazon/ssm/seelog.xml

      reply	other threads:[~2022-08-09 10:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08 20:28 [PATCH 1/2] go: Add " Michael Tremer
2022-08-08 20:28 ` [PATCH 2/2] amazon-ssm-agent: Enable build " Michael Tremer
2022-08-09 10:27   ` Peter Müller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c3e8abf-79ab-c556-ec7c-afd3caa643d4@ipfire.org \
    --to=peter.mueller@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox