Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qmk_firmware
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drashna Jael're
qmk_firmware
Commits
7b91af78
Commit
7b91af78
authored
Mar 9, 2021
by
QMK Bot
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into develop
parents
9155b59e
6d8d2077
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/python/qmk/info.py
+4
-13
4 additions, 13 deletions
lib/python/qmk/info.py
with
4 additions
and
13 deletions
lib/python/qmk/info.py
+
4
−
13
View file @
7b91af78
...
...
@@ -74,19 +74,10 @@ def info_json(keyboard):
_log_error
(
info_data
,
'
No LAYOUTs defined! Need at least one layout defined in the keyboard.h or info.json.
'
)
# Make sure we supply layout macros for the community layouts we claim to support
# FIXME(skullydazed): This should be populated into info.json and read from there instead
if
'
LAYOUTS
'
in
rules
and
info_data
.
get
(
'
layouts
'
):
# Match these up against the supplied layouts
supported_layouts
=
rules
[
'
LAYOUTS
'
].
strip
().
split
()
for
layout_name
in
sorted
(
info_data
[
'
layouts
'
]):
layout_name
=
layout_name
[
7
:]
if
layout_name
in
supported_layouts
:
supported_layouts
.
remove
(
layout_name
)
if
supported_layouts
:
for
supported_layout
in
supported_layouts
:
_log_error
(
info_data
,
'
Claims to support community layout %s but no LAYOUT_%s() macro found
'
%
(
supported_layout
,
supported_layout
))
for
layout
in
info_data
.
get
(
'
community_layouts
'
,
[]):
layout_name
=
'
LAYOUT_
'
+
layout
if
layout_name
not
in
info_data
.
get
(
'
layouts
'
,
{})
and
layout_name
not
in
info_data
.
get
(
'
layout_aliases
'
,
{}):
_log_error
(
info_data
,
'
Claims to support community layout %s but no %s() macro found
'
%
(
layout
,
layout_name
))
return
info_data
...
...
...
...
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
sign in
to comment