Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Aug 7, 2024

This was discovered while reviewing #9351

See commit messages for details.

It's 2024 and copy/paste/diverge still rulez :-(

marc-hb added 3 commits August 7, 2024 16:53
As already discussed in commit bcbcec7 ("cmake: drop
binutils-specific '-Wl,-EL' option") and commit ee58fef
("smex/cmake: move -Wl,EL option to target_linker_options() for clang")
and their corresponding reviews on GitHub, this binutils-specific,
endianness option makes no difference and is causing clang compatibility
issues. It's now getting in the way of thesofproject#9351 "Add the new platform
ACP_7_0".

I ran `./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -a` with
and without it and there was absolutely zero binary difference.

I was added in 2019 by giant commit e0ba98d ("cmake: add CMakeLists
for firmware build") without any rationale of why it would be needed.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This option was added by initial commit 36929ae ("smex: Create new
tool to build ldc file") without any justification. It has been causing
countless portability issues, see previous commit for examples. It makes
even less sense for a build-time utility. Get rid of it.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This mysterious option has been causing portability issues and has never
made any difference, see previous commits for details.

I compiled the plugin with and without it and there was absolutely zero
binary difference.

Let's remove it from all tools/plugin/ CMakeLists.txt files before the
mass copy/paste/diverge there spreads it even more.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb marked this pull request as ready for review August 7, 2024 17:35
@marc-hb marc-hb requested review from ranj063 and singalsu August 7, 2024 17:35
@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 7, 2024

@saisurya-ch saisurya-ch self-requested a review August 9, 2024 09:48
@kv2019i kv2019i merged commit 21e2028 into thesofproject:main Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants