Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
053f3644
Commit
053f3644
authored
Oct 07, 2024
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable report unconditionally, when REPORT is set
Note: when CHECK is set, targets.log only. targets.log will be moved to $(BUILDDIR)/reports/
parent
1a308d77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
Makefile
Makefile
+4
-3
report.mk
lib/report.mk
+0
-4
reports.mk
reports.mk
+4
-0
No files found.
Makefile
View file @
053f3644
...
...
@@ -3,9 +3,10 @@
# collect proceedings
ifeq
(,$(CHECK))
ifeq
(,$(DEBUG))
ifneq
(,$(REPORT))
$(warning
REPORT
is
disabled,
DEBUG
must
be
enabled
for
this)
ifeq
(,$(DEBUG))
export
DEBUG
=
1
$(warning
DEBUG
is
enabled,
since
REPORT
is
enabled)
endif
endif
endif
...
...
@@ -76,7 +77,7 @@ SHELL = /bin/bash
fi
;
\
say
"** BRANCH/ARCH:
$(BRANCH)
/
$$
ARCH"
;
\
fi
;
\
if
[
-n
"
$(REPORT)
"
]
&&
[
-n
"
$(DEBUG)
"
]
&&
[
-z
"
$(CHECK)
"
]
;
then
\
if
[
-n
"
$(REPORT)
"
]
;
then
\
REPORT_PATH
=
$$
(
mktemp
--tmpdir
mkimage-profiles.report.XXXXXXX
)
;
\
$(MAKE)
-f
main.mk
ARCH
=
$$
ARCH
$@
| report-filter
>
$$
REPORT_PATH
||
exit
1
;
\
$(MAKE)
-f
reports.mk
ARCH
=
$$
ARCH
REPORT
=
$(REPORT)
REPORT_PATH
=
$$
REPORT_PATH
;
\
...
...
lib/report.mk
View file @
053f3644
# enable make target tracing
ifeq (,$(CHECK))
ifneq (,$(DEBUG))
ifneq (,$(REPORT))
TRACE_PREFIX := trace:building
OLD_SHELL := $(SHELL)
...
...
@@ -9,5 +7,3 @@ SHELL = $(info $(TRACE_PREFIX) $@$(if $^$|, -> $^ $|))$(OLD_SHELL)
# piggyback BUILDDIR back into supervising environment
$(info $(TRACE_PREFIX) BUILDDIR = $(BUILDDIR))
endif
endif
endif
reports.mk
View file @
053f3644
...
...
@@ -30,6 +30,7 @@ define report_body
fi; }
endef
ifeq (,$(CHECK))
all: reports/targets reports/scripts reports/cleanlog \
reports/contents reports/packages
@rm -fr "$(LOGDIR)/$(IMAGE_OUTFILE).reports"
...
...
@@ -43,6 +44,9 @@ ifeq (2,$(REPORT))
@cd "$(LOGDIR)" && tar -cf "$(IMAGE_OUTFILE).reports.tar" "$(IMAGE_OUTFILE).reports" && \
rm -r "$(IMAGE_OUTFILE).reports"
endif
else
all: reports/targets; @:
endif
reports/prep:
@mkdir -p "$(REPORTDIR)" "$(LOGDIR)"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment