apache / apache/nuttx

version.h for version 12.4 is incorrect

Open
#11,502 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

I updated from version 12.3 to version 12.4.
When we build, version.h is automatically generated.
However, the contents of version.h are version 12.3.

```
$ make
Create version.h
LN: platform/board to /home/nop/nuttxspace/apps/platform/dummy
Register: hello
Register: nsh
Register: sh

$ cat $HOME/nuttxspace/nuttx/include/nuttx/version.h
/* version.h -- Autogenerated! Do not edit. */

#ifndef __INCLUDE_NUTTX_VERSION_H
#define __INCLUDE_NUTTX_VERSION_H

#define CONFIG_VERSION_STRING "12.3.0" ---> incorrect
#define CONFIG_VERSION_MAJOR 12
#define CONFIG_VERSION_MINOR 3 ----> incorrect
#define CONFIG_VERSION_PATCH 0
#define CONFIG_VERSION_BUILD "9852428953"

#define CONFIG_VERSION ((CONFIG_VERSION_MAJOR << 16) |\
(CONFIG_VERSION_MINOR << 8) |\
(CONFIG_VERSION_PATCH))
```

Contributor guide

Open the contributing guide

Research direction

Start by running make and inspecting nuttx/include/nuttx/version.h, then trace the version-generation step that reports "Create version.h". Reproduce the issue after updating to version 12.4 and verify that the generated header reports version 12.4 rather than 12.3.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, embedded-iot, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.