Skip to content

Commit

Permalink
petalinux.mk: Fix path to xsdb executable for versions newer than v20…
Browse files Browse the repository at this point in the history
…19.1

Signed-off-by: Joachim Foerster <[email protected]>
  • Loading branch information
joft-mle committed Apr 12, 2021
1 parent 0885bcd commit 3872fab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions petalinux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ all: build
-include local.mk

# tools
ifeq ($(shell expr $(subst .,,$(PETALINUX_VER)) ">" 20191),1)
XSDB ?= $(PETALINUX)/tools/xsct/bin/xsdb
else
ifeq ($(shell expr $(subst .,,$(PETALINUX_VER)) "<" 20183),1)
XSDB ?= $(PETALINUX)/tools/hsm/bin/xsdb
else
# for v2018.3 and v2019.1, xsdb is automatically found via $PATH
XSDB ?= xsdb
endif
endif

ifeq ($(shell expr $(subst .,,$(PETALINUX_VER)) ">" 20183),1)
SILENTCONFIG = --silentconfig
Expand Down

0 comments on commit 3872fab

Please sign in to comment.