70 lines
2.0 KiB
Plaintext
70 lines
2.0 KiB
Plaintext
.gitignore
|
|
|
|
export PKG_CONFIG_PATH
|
|
|
|
CC = `pkg-config genode-base --variable cc`
|
|
CXX = `pkg-config genode-base --variable cxx`
|
|
LD = `pkg-config genode-base --variable ld`
|
|
AR = `pkg-config genode-base --variable ar`
|
|
|
|
ifndef DEPOT_USER
|
|
error CONFIG_DEPOT_USER is undefined
|
|
endif
|
|
|
|
ifndef DEPOT_VERSION
|
|
error CONFIG_DEPOT_VERSION is undefined
|
|
endif
|
|
|
|
DEPOT_DIR = $(TUP_CWD)/depot/@(DEPOT_USER)
|
|
PUBLIC_DIR = $(TUP_CWD)/public/@(DEPOT_USER)
|
|
|
|
DEPOT_BIN_DIR = $(DEPOT_DIR)/bin/x86_64
|
|
PUBLIC_BIN_DIR = $(PUBLIC_DIR)/bin/x86_64
|
|
|
|
DEPOT_PKG_DIR = $(DEPOT_DIR)/pkg
|
|
PUBLIC_PKG_DIR = $(PUBLIC_DIR)/pkg
|
|
|
|
DEPOT_RAW_DIR = $(DEPOT_DIR)/raw
|
|
PUBLIC_RAW_DIR = $(PUBLIC_DIR)/raw
|
|
|
|
!strip_to_depot = |> ^ strip bin/%d^ strip -o %o %f |> $(DEPOT_BIN_DIR)/%d/@(DEPOT_VERSION)/%b
|
|
|
|
ERRATA_DIR = $(TUP_CWD)/errata
|
|
|
|
!archives_to_depot = |> ^ varse %d archives^ tup varsed %f %o |> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/archives
|
|
|
|
!runtime_to_depot = |> ^ validate %d runtime^ \
|
|
xmllint -schema $(ERRATA_DIR)/runtime.xsd --noout %f ; cp %f %o \
|
|
|> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/runtime $(DEPOT_DIR)/<runtimes>
|
|
|
|
!raw_to_depot = |> ^ raw/%d/%b^ cp -r %f %o |> $(DEPOT_RAW_DIR)/%d/@(DEPOT_VERSION)/%b
|
|
|
|
ifndef DEPOT_KEY
|
|
|
|
!publish_bin = |> |>
|
|
!publish_raw = |> |>
|
|
!publish_pkg = |> |>
|
|
|
|
else
|
|
|
|
SIGN_CMD = gpg --detach-sign --digest-algo SHA256 --no-tty --local-user @(DEPOT_KEY)
|
|
|
|
!publish_bin = |> ^o publish %d binary^ \
|
|
tar cfJ %o -C $(DEPOT_BIN_DIR)/%d . ; $(SIGN_CMD) < %o > %o.sig \
|
|
|> $(PUBLIC_BIN_DIR)/%d/@(DEPOT_VERSION).tar.xz \
|
|
| $(PUBLIC_BIN_DIR)/%d/@(DEPOT_VERSION).tar.xz.sig
|
|
|
|
!publish_raw = |> ^o publish %d raw^ \
|
|
tar cfJ %o -C $(DEPOT_RAW_DIR)/%d . ; $(SIGN_CMD) < %o > %o.sig \
|
|
|> $(PUBLIC_RAW_DIR)/%d/@(DEPOT_VERSION).tar.xz \
|
|
| $(PUBLIC_RAW_DIR)/%d/@(DEPOT_VERSION).tar.xz.sig
|
|
|
|
!publish_pkg = |> ^o publish %d package^ \
|
|
tar cfJ %o -C $(DEPOT_PKG_DIR)/%d . ; $(SIGN_CMD) < %o > %o.sig \
|
|
|> $(PUBLIC_PKG_DIR)/%d/@(DEPOT_VERSION).tar.xz \
|
|
| $(PUBLIC_PKG_DIR)/%d/@(DEPOT_VERSION).tar.xz.sig
|
|
|
|
!public_signature = |> ^ sign %b^ $(SIGN_CMD) < %f > %o |> %f.sig
|
|
|
|
endif
|