Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ffbs
ffbs-gluon
Commits
67d7c989
Commit
67d7c989
authored
10 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
Fix a few error messages and other strangeness on `make update` in a clean tree
parent
74c8501b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/gluon.mk
+1
-1
1 addition, 1 deletion
include/gluon.mk
include/toplevel.mk
+2
-2
2 additions, 2 deletions
include/toplevel.mk
include/verbose.mk
+61
-0
61 additions, 0 deletions
include/verbose.mk
with
64 additions
and
3 deletions
include/gluon.mk
+
1
−
1
View file @
67d7c989
...
...
@@ -26,7 +26,7 @@ $(GLUON_SITEDIR)/site.mk:
GLUON_VERSION
:=
$(
shell
cd
$(
GLUONDIR
)
&&
git describe
--always
2>/dev/null
||
echo
unknown
)
export
GLUON_VERSION
GLUON_CONFIG_VERSION
:=
$(
shell
cd
$(
GLUON_SITEDIR
)
&&
git describe
--always
--dirty
=
.
$$(
stat
-c
%Y
$(
GLUON_SITEDIR
)
/site.conf
)
2>/dev/null
||
stat
-c
%Y site.conf
)
GLUON_CONFIG_VERSION
:=
$(
shell
test
-d
$(
GLUON_SITEDIR
)
&&
(
cd
$(
GLUON_SITEDIR
)
&&
git describe
--always
--dirty
=
.
$$(
stat
-c
%Y
$(
GLUON_SITEDIR
)
/site.conf
)
2>/dev/null
||
stat
-c
%Y site.conf
)
)
export
GLUON_CONFIG_VERSION
GLUON_SITE_CODE
:=
$(
shell
$(
GLUONDIR
)
/scripts/site.sh site_code
)
...
...
This diff is collapsed.
Click to expand it.
include/toplevel.mk
+
2
−
2
View file @
67d7c989
...
...
@@ -10,9 +10,9 @@
RELEASE
:=
Attitude Adjustment
PREP_MK
=
OPENWRT_BUILD
=
QUIET
=
0
-
include
$(
TOP
DIR)/include/verbose.mk
include
$(
GLUON
DIR)/include/verbose.mk
REVISION
:=
$(
shell
cd
$(
TOPDIR
)
&&
./scripts/getver.sh 2>/dev/null
)
REVISION
:=
$(
shell
[
-d
$(
TOPDIR
)
]
&&
cd
$(
TOPDIR
)
&&
./scripts/getver.sh 2>/dev/null
)
HOSTCC
?=
gcc
OPENWRTVERSION
:=
$(
RELEASE
)$(
if
$(
REVISION
)
,
(
$(
REVISION
))
)
...
...
This diff is collapsed.
Click to expand it.
include/verbose.mk
0 → 100644
+
61
−
0
View file @
67d7c989
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
ifndef
OPENWRT_VERBOSE
OPENWRT_VERBOSE
:=
endif
ifeq
("$(origin V)", "command line")
OPENWRT_VERBOSE
:=
$(
V
)
endif
ifeq
($(OPENWRT_VERBOSE),1)
OPENWRT_VERBOSE
:=
w
endif
ifeq
($(OPENWRT_VERBOSE),99)
OPENWRT_VERBOSE
:=
s
endif
ifeq
($(NO_TRACE_MAKE),)
NO_TRACE_MAKE
:=
$(
MAKE
)
V
=
s
$(
OPENWRT_VERBOSE
)
export
NO_TRACE_MAKE
endif
ifeq
($(IS_TTY),1)
ifneq
($(strip $(NO_COLOR)),1)
_Y
:=
\\
033[33m
_N
:=
\\
033[m
endif
endif
ifeq
($(findstring s,$(OPENWRT_VERBOSE)),)
define
MESSAGE
printf
"$(_Y)%s$(_N)\n"
"$(1)"
>&8
endef
ifeq
($(QUIET),1)
ifneq
($(CURDIR),$(TOPDIR))
_DIR
:=
$(
patsubst
$(
TOPDIR
)
/%,%,
${
CURDIR
})
else
_DIR
:=
endif
_NULL
:=
$(
if
$(
MAKECMDGOALS
)
,
$(
shell
\
$(
call MESSAGE, make[
$(
MAKELEVEL
)
]
$(
if
$(
_DIR
)
,
-C
$(
_DIR
))
$(
MAKECMDGOALS
));
\
))
SUBMAKE
=
$(
MAKE
)
else
SILENT
:=>
/dev/null
$(
if
$(
findstring w,
$(
OPENWRT_VERBOSE
))
,,2>&1
)
export
QUIET
:=
1
SUBMAKE
=
cmd
()
{
$(
SILENT
)
$(
MAKE
)
-s
$$
*
< /dev/null
||
{
echo
"make
$$
*: build failed. Please re-run make with V=s to see what's going on"
;
false
;
}
}
8>&1 9>&2
;
cmd
endif
.SILENT
:
$(MAKECMDGOALS)
else
SUBMAKE
=
$(
MAKE
)
-w
define
MESSAGE
printf
"%s\n"
"$(1)"
endef
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment