Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid loading keymap rules.mk twice #24665

Merged
merged 1 commit into from
Dec 1, 2024
Merged

Avoid loading keymap rules.mk twice #24665

merged 1 commit into from
Dec 1, 2024

Conversation

zvecr
Copy link
Member

@zvecr zvecr commented Dec 1, 2024

Description

When both a keymap.c and keymap.json exist, a rules.mk is loaded multiple times.

Adding a SRC += x.c to a keymap level in this scenario, results in the compilation unit being appended twice, producing "multiple definition of" link issues.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@zvecr zvecr added the bug label Dec 1, 2024
@github-actions github-actions bot added the core label Dec 1, 2024
@tzarc tzarc merged commit 5eb53be into master Dec 1, 2024
3 checks passed
@tzarc tzarc deleted the zvecr-patch-1 branch December 1, 2024 19:24
smallketchup82 pushed a commit to smallketchup82/qmk_firmware that referenced this pull request Dec 1, 2024
ilham-agustiawan pushed a commit to ilham-agustiawan/qmk_firmware that referenced this pull request Dec 5, 2024
DmNosachev pushed a commit to DmNosachev/qmk_firmware that referenced this pull request Dec 7, 2024
waffle87 pushed a commit to waffle87/qmk_firmware that referenced this pull request Dec 10, 2024
SyrupSplashin pushed a commit to SyrupSplashin/qmk_firmware that referenced this pull request Dec 10, 2024
LeonMusCoden pushed a commit to LeonMusCoden/qmk_firmware that referenced this pull request Jan 5, 2025
ichichou pushed a commit to ichichou/qmk_firmware that referenced this pull request Jan 8, 2025
MichaelScofield45 pushed a commit to MichaelScofield45/qmk_firmware that referenced this pull request Jan 8, 2025
pashashocky pushed a commit to pashashocky/qmk that referenced this pull request Jan 17, 2025
Rumadon pushed a commit to Rumadon/qmk_firmware that referenced this pull request Jan 31, 2025
MaximumP pushed a commit to MaximumP/qmk_firmware that referenced this pull request Feb 1, 2025
alinelena pushed a commit to alinelena/qmk_firmware that referenced this pull request Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants