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
1
Issues
1
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
9bd853e8
Commit
9bd853e8
authored
Jun 15, 2012
by
Mikhail Efremov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add LIBDIR variable.
Allow to put the log files and reports in a custom directory instead of IMIGEDIR.
parent
fc716ec0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
Makefile
image.in/Makefile
+4
-2
build.mk
lib/build.mk
+2
-0
profile.mk
lib/profile.mk
+1
-0
reports.mk
reports.mk
+3
-1
No files found.
image.in/Makefile
View file @
9bd853e8
...
...
@@ -74,12 +74,14 @@ postprocess: | $(addprefix postprocess-,$(sort $(POSTPROCESS_TARGETS)))
@
OUTSIZE
=
"
`
ls
-lh
"
$(IMAGE_OUTPATH)
"
|
cut
-f5
-d
' '
`
"
;
\
echo
"** image:
$(IMAGE_OUTPATH)
[
$$
OUTSIZE]"
>
&2
&&
\
echo
"IMAGE_OUTPATH =
$(IMAGE_OUTPATH)
"
&&
\
echo
"IMAGE_OUTFILE =
$(IMAGE_OUTFILE)
"
&&
\
ln
-sf
"
$(IMAGE_RELPATH)
"
"
$(IMAGE_LINKPATH)
"
&&
\
ln
-sf
"
$(IMAGE_RELDIR)
"
"
$(OUT_LINK)
"
&&
\
ln
-sf
"
$(IMAGE_LINK)
"
"
$(IMAGEDIR)
/
$(CURRENT_LINK)
.
$(IMAGE_TYPE)
"
;
\
if
[
-n
"
$(GLOBAL_DEBUG)
"
]
;
then
\
cp
-a
build.log
"
$(IMAGE_OUTPATH)
.log"
;
\
cp
-a
distcfg.mk
"
$(IMAGE_OUTPATH)
.cfg"
;
\
mkdir
-p
"
$(LOGDIR)
"
;
\
cp
-a
build.log
"
$(LOGDIR)
/
$(IMAGE_OUTFILE)
.log"
;
\
cp
-a
distcfg.mk
"
$(LOGDIR)
/
$(IMAGE_OUTFILE)
.cfg"
;
\
fi
debug
:
...
...
lib/build.mk
View file @
9bd853e8
...
...
@@ -33,6 +33,8 @@ IMAGEDIR ?= $(shell \
fi; \
)
LOGDIR ?= $(IMAGEDIR)
# actual build starter
# NB: our output MUST go into stderr to escape POSTPROC
build-image: profile/populate
...
...
lib/profile.mk
View file @
9bd853e8
...
...
@@ -84,6 +84,7 @@ profile/bare: profile/init
@$(call try,MKIMAGE_PREFIX,/usr/share/mkimage)
@$(call try,GLOBAL_VERBOSE,)
@$(call try,IMAGEDIR,$(IMAGEDIR))
@$(call try,LOGDIR,$(LOGDIR))
@$(call try,BRANDING,altlinux-sisyphus)
@$(call set,IMAGE_INIT_LIST,+branding-$$(BRANDING)-release)
@if type -t git >&/dev/null && cd $(BUILDDIR); then \
...
...
reports.mk
View file @
9bd853e8
...
...
@@ -8,6 +8,8 @@ BUILDDIR := $(shell sed -n 's/^.* BUILDDIR = \(.*\)/\1/p' "$(REPORT_PATH)")
BUILDLOG := $(BUILDDIR)/$(BUILD_LOG)
REPORTDIR := $(BUILDDIR)/reports
IMAGE_OUTPATH := $(shell sed -n 's/^IMAGE_OUTPATH = \(.*\)/\1/p' $(BUILDLOG))
IMAGE_OUTFILE := $(shell sed -n 's/^IMAGE_OUTFILE = \(.*\)/\1/p' $(BUILDLOG))
LOGDIR := $(shell sed -n 's/^LOGDIR = \(.*\)/\1/p' $(BUILDLOG))
# for a multi-image build there's no sense to refer to buildroot
# contained reports as these are very ephemeral between builds
...
...
@@ -17,7 +19,7 @@ endif
all: reports/targets reports/scripts
@if [ -n "$(IMAGE_OUTPATH)" ]; then \
cp -a
$(REPORTDIR) $(IMAGE_OUTPATH).reports
; \
cp -a
"$(REPORTDIR)" "$(LOGDIR)/$(IMAGE_OUTFILE).reports"
; \
fi
reports/prep:
...
...
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