#
#asahi-alt · 2024-08-19 16:59
leioif you do end up with having to pass M1=1, you need to patch out the CFLAGS modifications (if they override user one, cmake is confusing to me), etc
#asahi-alt · 2024-08-19 16:57
n3phis a bit clueless how to proceed from here
#asahi-alt · 2024-08-19 16:56
leioit's a bit of a mess for downstreams
#asahi-alt · 2024-08-19 16:54
leiodon't have a clone to quickly check
#asahi-alt · 2024-08-19 16:54
leiothough add_definitions(-DM1) might be doing something inside the code :(
#asahi-alt · 2024-08-19 16:53
leioand those feel like they are just for all arm64, hence `if use arm64; then ...`
#asahi-alt · 2024-08-19 16:53
leiolike https://github.com/ptitSeb/box64/blob/main/CMakeLists.txt#L67-L72
#asahi-alt · 2024-08-19 16:53
leioso just don't, pass what's needed manually
#asahi-alt · 2024-08-19 16:52
leioyou mustn't end up having the ebuild let these be set in place of user CFLAGS, so you can't pass M1=1 in an ebuild without patching that out
#asahi-alt · 2024-08-19 16:52
leiostuff like https://github.com/ptitSeb/box64/blob/main/CMakeLists.txt#L189-L192
#asahi-alt · 2024-08-19 16:47
leiolike if you read the build files, then M1 block sets some other stuff iirc
#asahi-alt · 2024-08-19 16:47
leiowhile not messing with user CFLAGS as another side-effect of what M1=1 does
#asahi-alt · 2024-08-19 16:47
leioso I think the conclusion was that you shouldn't be passing M1=1, but only do the part that matters for it re page size instead
#asahi-alt · 2024-08-19 16:46
leioand maybe it was also about pre-picking some CFLAGS, which it has no business to do
#asahi-alt · 2024-08-19 16:46
chaos_princessnot only that, they have a bunch of other random arm boards listed there too
#asahi-alt · 2024-08-19 16:46
leio(thus in a gentoo channel)
#asahi-alt · 2024-08-19 16:46
leioI remember having this conversation with another gentoo contributor for non-asahi case
#asahi-alt · 2024-08-19 16:46
leioI think in the guts it's about page size selection there, no?
#asahi-alt · 2024-08-19 16:45
chaos_princessconsidering that m1 is not the only special platform, USE_EXPAND sth like BOX64_OPTIMIZE_FOR, and then list all the platforms they have there
#asahi-alt · 2024-08-19 16:40
n3phleio: how to adopt this then? https://github.com/ptitSeb/box64/blob/main/docs/COMPILE.md#for-m1
#asahi-alt · 2024-08-19 15:13
leion3ph: I don't feel like conditionalizing M1 or M2 CPU stuff (if that's what it's about) on a video cards USE_EXPAND is appropriate anyhow
#asahi-alt · 2024-08-19 12:40
n3phsure. I see your point. But for this it's great
#asahi-alt · 2024-08-19 12:40
chadmedwont run steam linux, wont run proton
#asahi-alt · 2024-08-19 12:40
chadmedfactorio is an outlier because they have a fulltime linux dev and its a 64 bit build
#asahi-alt · 2024-08-19 12:40
n3phI've added `-DM1=1` locally - works pretty well with factorio
#asahi-alt · 2024-08-19 12:39
chadmedbut theres not a whole lot of interesting things you can do with it
#asahi-alt · 2024-08-19 12:39
chadmedmaybe its more useful now that they fake 4k pages
#asahi-alt · 2024-08-19 12:39
n3phy?
#asahi-alt · 2024-08-19 12:39
chadmedi had box64 and box86 ebuilds in there ages ago but treecleaned them because they are still pretty useless
#asahi-alt · 2024-08-19 12:39
n3phfine for me
#asahi-alt · 2024-08-19 12:38
chadmedyes then eventually to ::gentoo
#asahi-alt · 2024-08-19 12:38
n3phSo adding box64 to asahi-overlay it is then?
#asahi-alt · 2024-08-19 12:38
chadmedfeel free to push to guru if you want since its probably also useful on other platforms but i will be overriding it in the overlay when all of this stuff is _actually_ ready for packaging
#asahi-alt · 2024-08-19 12:37
n3phyep, saw https://github.com/chadmed/asahi-overlay/blob/main/profiles/desc/video_cards.desc
#asahi-alt · 2024-08-19 12:36
chadmedi will not accept anything less
#asahi-alt · 2024-08-19 12:36
chadmedyou should be able to use the system with just ::gentoo and the overlay, and eventually just ::gentoo
#asahi-alt · 2024-08-19 12:36
chadmedalso i dont want to have a bunch of arguably necessary packages dependent on people enabling ::guru
#asahi-alt · 2024-08-19 12:36
chadmedn3ph: you cant use video_cards_asahi outside the overlay because we define it
#asahi-alt · 2024-08-19 12:20
pi_Test
#asahi-alt · 2024-08-19 08:51
n3phPractically it's working, but I don't know if it's alright to ignore and push regardlessly.
#asahi-alt · 2024-08-19 08:51
n3phAlso, `pkgdev` is yelling `UnknownUseFlags` at me, because I wanted to conditionalize `-D M1=1` on `VIDEO_CARDS=asahi` by using the use flag `video_cards_asahi`.
#asahi-alt · 2024-08-19 08:49
n3phI was about to push it to guru. I haven't seen benefit of maintaining a version in the asahi-overlay yet. Any thoughts on this?
#asahi-alt · 2024-08-19 08:47
n3phI'll see when I am going to return on it. I'll try finishing up on a new ebuild for box64 with M1 support first.
#asahi-alt · 2024-08-19 08:47
n3phI was having a look for the plymouth theming yesterday. It isn't fun even the function declarations literally start with it.
#asahi-alt · 2024-08-18 22:48
n3phnvm, I've forgot -DM=1 and -DARM_DYNAREC=1
#asahi-alt · 2024-08-18 22:23
n3phsomeone knows what it is?
#asahi-alt · 2024-08-18 22:23
n3ph ))
#asahi-alt · 2024-08-18 22:23
n3ph ),
#asahi-alt · 2024-08-18 22:23
n3ph 0xb337200,
#asahi-alt · 2024-08-18 22:23
n3ph EventValue(

plus ›