-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (27 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-License-Identifier: BSD-2-Clause-Patent
# Copyright (c) 2019-2024 Intel Corporation
NAME := spdk
SRC_EXT := gz
SOURCE = https://github.com/spdk/$(NAME)/archive/v$(VERSION).tar.$(SRC_EXT)
# this needs to be formalized into packaging/Makefile_packaging.mk
#GIT_COMMIT := 7232c450f97cf925a521a60ef2561eca4b65c41a
#BUILD_DEFINES := --define "commit $(GIT_COMMIT)"
#RPM_BUILD_OPTIONS := $(BUILD_DEFINES)
#https://github.com/rpm-software-management/mock/issues/384
override MOCK_OPTIONS += --disablerepo=sclo*
include packaging/Makefile_packaging.mk
# This not really intended to run in CI. It's meant as a developer
# convenience to generate the needed patch and add it to the repo to
# be committed.
# Should figure out a way to formalize this into
# packaging/Makefile_packaging.mk
# $(VERSION)..$(GIT_COMMIT).patch:
# # it really sucks that GitHub's "compare" returns such dirty patches
# #curl -O 'https://github.com/hpc/$(NAME)/compare/$@'
# git clone [email protected]:spdk/$(NAME).git
# pushd $(NAME) && \
# trap 'popd && rm -rf $(NAME)' EXIT; \
# git diff $(VERSION)..$(GIT_COMMIT) --stat \
# git diff $(VERSION)..$(GIT_COMMIT) \
# > ../$@
# git add $@