diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2023-02-05 17:33:11 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-05 17:33:11 -0300 |
| commit | 65ee64b4db35d30b3ed6412a493b6cf5eed94a73 (patch) | |
| tree | e3ee204c6136102cb83700dbd81c82b7e0cf2616 /dynamic-layers/openembedded-layer | |
| parent | 2184ee874eeb7181a160780a2c77775ced0e3616 (diff) | |
| parent | c731dcbe2ddbaa57c37e4ec8362752c9b96ab13d (diff) | |
| download | meta-freescale-65ee64b4db35d30b3ed6412a493b6cf5eed94a73.tar.gz | |
Merge pull request #1407 from walter-schweizer/master
On Ubuntu 22.04(LTS) cst fails to link with libcrypto.
Diffstat (limited to 'dynamic-layers/openembedded-layer')
| -rw-r--r-- | dynamic-layers/openembedded-layer/recipes-devtools/cst/files/0001-fix-err-msg-linking.patch | 56 | ||||
| -rw-r--r-- | dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb | 5 |
2 files changed, 60 insertions, 1 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/cst/files/0001-fix-err-msg-linking.patch b/dynamic-layers/openembedded-layer/recipes-devtools/cst/files/0001-fix-err-msg-linking.patch new file mode 100644 index 000000000..a3f5c8288 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-devtools/cst/files/0001-fix-err-msg-linking.patch | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | NXP uses weaken to solve conflict in linking. | ||
| 2 | On Ubuntu 22.04(LTS) this fails to link cst with libcrypto. | ||
| 3 | |||
| 4 | The patch fixes the conflict in the code itself. | ||
| 5 | It restricts the scope of err_msg to the module. | ||
| 6 | |||
| 7 | Upstream-Status: Inappropriate [i.MX specific] | ||
| 8 | Signed-off-by: Walter Schweizer <walter.schweizer@siemens.com> | ||
| 9 | ---- | ||
| 10 | diff --git a/code/cst/code/build/make/rules.mk b/code/cst/code/build/make/rules.mk | ||
| 11 | index 1c0842b..9c46cc4 100644 | ||
| 12 | --- a/code/cst/code/build/make/rules.mk | ||
| 13 | +++ b/code/cst/code/build/make/rules.mk | ||
| 14 | @@ -25,11 +25,11 @@ LFLAGS := -t | ||
| 15 | %.a: | ||
| 16 | @echo "Create archive $@" | ||
| 17 | $(AR) $(ARFLAGS) $@ $^ | ||
| 18 | -ifneq ($(OSTYPE),mingw32) | ||
| 19 | -ifneq ($(OSTYPE),osx) | ||
| 20 | - $(OBJCOPY) --weaken $@ | ||
| 21 | -endif | ||
| 22 | -endif | ||
| 23 | +#ifneq ($(OSTYPE),mingw32) | ||
| 24 | +#ifneq ($(OSTYPE),osx) | ||
| 25 | +# $(OBJCOPY) --weaken $@ | ||
| 26 | +#endif | ||
| 27 | +#endif | ||
| 28 | |||
| 29 | %.exe: | ||
| 30 | @echo "Link $@" | ||
| 31 | diff --git a/code/cst/code/front_end/src/acst.c b/code/cst/code/front_end/src/acst.c | ||
| 32 | index fb1e8aa..1e993ee 100644 | ||
| 33 | --- a/code/cst/code/front_end/src/acst.c | ||
| 34 | +++ b/code/cst/code/front_end/src/acst.c | ||
| 35 | @@ -65,7 +65,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 36 | /*=========================================================================== | ||
| 37 | LOCAL VARIABLES | ||
| 38 | =============================================================================*/ | ||
| 39 | -char err_msg[MAX_ERR_MSG_BYTES]; | ||
| 40 | +static char err_msg[MAX_ERR_MSG_BYTES]; | ||
| 41 | |||
| 42 | /*=========================================================================== | ||
| 43 | LOCAL FUNCTION PROTOTYPES | ||
| 44 | diff --git a/code/cst/code/front_end/src/misc_helper.c b/code/cst/code/front_end/src/misc_helper.c | ||
| 45 | index 678dc17..9014b2a 100644 | ||
| 46 | --- a/code/cst/code/front_end/src/misc_helper.c | ||
| 47 | +++ b/code/cst/code/front_end/src/misc_helper.c | ||
| 48 | @@ -60,7 +60,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 49 | /*=========================================================================== | ||
| 50 | LOCAL VARIABLES | ||
| 51 | =============================================================================*/ | ||
| 52 | -char err_msg[MAX_ERR_MSG_BYTES]; | ||
| 53 | +static char err_msg[MAX_ERR_MSG_BYTES]; | ||
| 54 | |||
| 55 | /*=========================================================================== | ||
| 56 | LOCAL FUNCTION PROTOTYPES | ||
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb b/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb index 317ca379e..5f808a974 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb +++ b/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb | |||
| @@ -9,7 +9,10 @@ DEPENDS = "byacc-native flex-native openssl" | |||
| 9 | 9 | ||
| 10 | # tag=debian/3.3.1+dfsg-2 | 10 | # tag=debian/3.3.1+dfsg-2 |
| 11 | SRCREV = "e2c687a856e6670e753147aacef42d0a3c07891a" | 11 | SRCREV = "e2c687a856e6670e753147aacef42d0a3c07891a" |
| 12 | SRC_URI = "git://gitlab.apertis.org/pkg/imx-code-signing-tool.git;protocol=https;branch=apertis/v2022pre" | 12 | SRC_URI = " \ |
| 13 | file://0001-fix-err-msg-linking.patch \ | ||
| 14 | git://gitlab.apertis.org/pkg/imx-code-signing-tool.git;protocol=https;branch=apertis/v2022pre \ | ||
| 15 | " | ||
| 13 | 16 | ||
| 14 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
| 15 | 18 | ||
