-
Notifications
You must be signed in to change notification settings - Fork 349
Enable xcc build for all platform #2024
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
Conversation
|
@jajanusz @tlauda Could you help to check the build fail for the BYT, CHT, BDW, HSW and SUE. BDW, HSW SUE |
Error says pretty much what problem is, .text section is too small to fit generated binary code. You need to tune memory.h in platform/{baytrail,haswell}. |
|
@xiulipan And also __vec_memcpy is probably not supported on HIFI2, so you need to add additional check in string.h in xtensa arch. |
|
@xiulipan Don't you want to add fixes into this PR first? |
|
@xiulipan the IRAM sizes look wrong to me. we've always used 14000 e.g. #define SST_BYT_IRAM_PHY_START 0xff2c0000
#define SST_BYT_IRAM_PHY_END 0xff2d4000
#define SST_BYT_DRAM_PHY_START 0xff300000
#define SST_BYT_DRAM_PHY_END 0xff320000 |
@plbossart @tlauda already correct me here, so we try to use -Os flag to avoid the issue. @lgirdwood The -Os is just a test for my build test. I think I got @jajanusz help to have different optimization level with #2054 |
|
@xiulipan I saw your patches changes some default value in common file. Will it impact on gcc build? |
These |
|
@xiulipan any ETA for landing this ? |
|
@lrgirdwo Hope I can do that in this week. Still need to figure out how to switch the optimization level by default. |
Just add |
xcc HIFI2 do not vec_memcpy, we can only use vec_memcpy on HIFI3 supported platforms. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Use SOF_MEM_VECBASE_TEXT_BASE to repalce unset variable. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
xcc build will have bigger TEXT. Need to keep the total block size unchange as the block need to be 4k align. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
bay cht and sue xcc build has bigger size, need to use -Os to reduce size. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Update xcc build config for all existing platforms. xcc build with byt, cht and sue need special defconfig. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
ae9679c to
a84276a
Compare
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we roll this now int CI so that it builds using XCC and has download links for binaries (using community key) and ldc files.
|
@xiulipan @lgirdwood Is this ready to be merged? |
|
@tlauda yep, if you approve it. We only have 1 approver atm. me. |
Fix xcc build for BYT/CHT/HSW/BDW/SUE
Improve the optimization level to reduce TEXT size in FW.
Fix void pointer arithmetic in hifi2 build.
Update xcc build config for all existing platforms.