diff --git a/Makefile b/Makefile index 09896b9..399ffa4 100755 --- a/Makefile +++ b/Makefile @@ -38,6 +38,10 @@ else CC = gcc endif +INSTALL = install +INSTALL_PROGRAM = $(INSTALL) +bindir = /usr/local/bin + OBJ = o CXXFLAGS ?= -std=c++0x -O -Wall -Wno-reorder -Wno-deprecated-declarations CFLAGS ?= -O -Wall @@ -78,6 +82,10 @@ ${EXEC}: $(OBJECTS) execs: ${EXEC} +install: + $(INSTALL) -d $(DESTDIR)$(bindir) + $(INSTALL_PROGRAM) ${EXEC} $(DESTDIR)$(bindir) + clean: echo rm -rf ${EXEC} diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..5b1378c --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,21 @@ +name: bootgen +base: core18 +version: git +summary: Xilinx Bootgen +description: | + Bootgen is a Xilinx tool that lets you stitch binary files together + and generate device boot images. Bootgen defines multiple properties, + attributes and parameters that are input while creating bootimages for + use in a Xilinx device. +grade: stable +confinement: classic + +parts: + bootgen: + source: . + plugin: make + build-packages: [g++, libssl-dev] + +apps: + bootgen: + command: usr/local/bin/bootgen