Skip to content

Commit eaf7bc2

Browse files
committed
package: ship ksymoff and docs in install + release
Both paths shipped only kasld + components, though docs/exploitation.md presents ksymoff as the companion symbol-resolution tool and the README links into docs/. - Makefile: install ksymoff -> bin/, README/LICENSE/docs/ -> share/doc/kasld/; uninstall removes both. - _cross-build.yml: add extra/ksymoff + docs/ to the release tarball.
1 parent 5aa51d6 commit eaf7bc2

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/_cross-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ jobs:
120120
cp -a "${{ steps.builddir.outputs.dir }}/." "${DIR}/"
121121
find "${DIR}" -name '*.o' -delete
122122
cp README.md LICENSE "${DIR}/"
123+
# Companion symbol-offset tool (arch-independent) + the docs, so the
124+
# tarball matches `make install` and the README's doc links resolve.
125+
mkdir -p "${DIR}/extra"
126+
cp extra/ksymoff "${DIR}/extra/"
127+
cp -a docs "${DIR}/docs"
123128
tar czf "${DIR}.tar.gz" "${DIR}"
124129
sha256sum "${DIR}.tar.gz" > "${DIR}.tar.gz.sha256"
125130

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,18 @@ clean :
434434
install : build
435435
install -d "$(DESTDIR)$(PREFIX)/bin"
436436
install -m 755 $(KASLD_BIN) "$(DESTDIR)$(PREFIX)/bin/kasld"
437+
install -m 755 extra/ksymoff "$(DESTDIR)$(PREFIX)/bin/ksymoff"
437438
install -d "$(DESTDIR)$(PREFIX)/libexec/kasld"
438439
install -m 755 $(COMP_DIR)/* "$(DESTDIR)$(PREFIX)/libexec/kasld/"
440+
install -d "$(DESTDIR)$(PREFIX)/share/doc/kasld"
441+
cp -R docs README.md LICENSE "$(DESTDIR)$(PREFIX)/share/doc/kasld/"
439442

440443
.PHONY: uninstall
441444
uninstall :
442445
rm -f "$(DESTDIR)$(PREFIX)/bin/kasld"
446+
rm -f "$(DESTDIR)$(PREFIX)/bin/ksymoff"
443447
rm -rf "$(DESTDIR)$(PREFIX)/libexec/kasld"
448+
rm -rf "$(DESTDIR)$(PREFIX)/share/doc/kasld"
444449

445450

446451
# Cross-compile all supported architectures with `make cross` — a local,

0 commit comments

Comments
 (0)