50 lines
1.7 KiB
Plaintext
50 lines
1.7 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 %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
|
|
|
|
ifdef DEPOT_KEY
|
|
|
|
!depot_bin_tarball = |> ^o archive %d binary^ tar cfJ %o -C $(DEPOT_BIN_DIR)/%d . |> $(PUBLIC_BIN_DIR)/%d/@(DEPOT_VERSION).tar.xz
|
|
|
|
!depot_pkg_tarball = |> ^o archive %d package^ tar cfJ %o -C $(DEPOT_PKG_DIR)/%d . |> $(PUBLIC_PKG_DIR)/%d/@(DEPOT_VERSION).tar.xz
|
|
|
|
!depot_raw_tarball = |> ^o archive %d raw^ tar cfJ %o -C $(DEPOT_RAW_DIR)/%d . |> $(PUBLIC_RAW_DIR)/%d/@(DEPOT_VERSION).tar.xz
|
|
|
|
!public_signature = |> ^ sign %b^ gpg --detach-sign --digest-algo SHA256 --no-tty --local-user @(DEPOT_KEY) - < %f > %o |> %f.sig
|
|
|
|
endif
|