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

autotools: replace user variables with automake variables #67

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

jajanusz
Copy link
Contributor

@jajanusz jajanusz commented Jul 6, 2018

Our autotools configs shouldn't use user variables such as CFLAGS and LDFLAGS, so I moved their contents to AM_CFLAGS and AM_LDFLAGS and updated all affected makefiles.

Also I had to add AM_CCASFLAGS which is used for .S files, previously CFLAGS were added while compiling these files what can be misleading and we may want to not have the same CFLAGS for c and .S sources. So now we have to set AM_CFLAGS for c files and AM_CCASFLAGS for as files.

AM_CCASFLAGS are intially set to the same value as AM_CFLAGS for backward compatibility, but it would be good to check if we really need all these flags for our .S files.

Order of the flags passed to tools changed, because AM/target flags are added before user CFLAGS but binaries look to be the same, checked with:

xt-objdump -dz src/arch/xtensa/sof | sha1sum
xt-objdump -dz src/arch/xtensa/boot_ldr | sha1sum

Signed-off-by: Janusz Jankowski [email protected]

@jajanusz jajanusz requested a review from lgirdwood July 6, 2018 12:22
@lgirdwood lgirdwood merged commit a48cedd into thesofproject:master Jul 9, 2018
@keqiaozhang
Copy link
Collaborator

This change will cause compile issue for each platform.

@jajanusz jajanusz deleted the extraflags branch July 17, 2018 08:31
ryans-lee pushed a commit to ryans-lee/sof that referenced this pull request Jul 7, 2020
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.

3 participants