Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Syntax questions about USE/VIDEO_CARDS flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
g3n0bus1
n00b
n00b


Joined: 18 Jan 2021
Posts: 11

PostPosted: Sun Sep 25, 2022 12:09 am    Post subject: Syntax questions about USE/VIDEO_CARDS flags Reply with quote

In the make.default file there are many kind of USE flags and VIDEO_CARDS.
example:
Code:

# Enable Vulkan for ClusterFuzz.
USE="${USE} vulkan"

# Use legacy pre-Groot UI for initramfs and init script screens.
USE="${USE} legacy_firmware_ui"

# Enable a few more video cards as this is a generic board.
VIDEO_CARDS="intel llvmpipe nouveau radeon"


Question 1:
If I want to enable ALL of flags and video cards, Can I use like this?
Code:

# I am lazy to write each flags!!
USE="*"



# I wanna build the OS for many kinds of amd64-generic boards, but I don't know about each video cards!!
VIDEO_CARDS="*"

Is this technically possible?
Is this good way to build the OS for many kinds of amd64-generic boards?


Questions 2:
For USE flags, I can get the informations from equery.
example:
Code:

 $ equery-amd64-generic uses mesa

However how can I know about each video card flags, such as intel/llvmpipe/nouveau/radeon?



ADDED:
Sorry for my insufficient question.
I am not working on genuine Gentoo.
I am working on a Chromium OS SDK chroot which implements a Gentoo environment.
In the chroot I do cross compile for amd64-generic board.
So some commands (ex: equery -> equery-amd64-generic) or files (make.conf -> make.default) are slightly different.
But the principle are almost same. So I am asking to Gentoo experts.


Last edited by g3n0bus1 on Sun Sep 25, 2022 1:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
psycho
Guru
Guru


Joined: 22 Jun 2007
Posts: 534
Location: New Zealand

PostPosted: Sun Sep 25, 2022 1:11 am    Post subject: Reply with quote

Hi g3n0bus1.

There's no need to specify "*" USE flags explicitly because just leaving things alone defaults to whatever flags your profile has enabled. It would defeat the purpose of manual control over build choices via USE flags to say "yes please" to everything (even potentially conflicting choices)...the best lazy option is just to leave things alone apart from the specific flags you want to change.

For seeing what's being used in your system, euse is handy. You can
Code:
euse --info
to see an overview of everything, or e.g.
Code:
euse -i nvidia
to get a summary of the packages affected by a specific flag.

I'm not sure that I'm understanding your question about amd64 generic boards. If you're talking about the CFLAGS for amd64 processors, again it's a case of leaving things alone if you want the generic options. If you follow the handbook's suggestion of "-march=native" you will build things specifically for your own processor, which means you won't be able to copy the binaries across to whatever other machines (with different processors) you want. Getting rid of that "-march=native" will revert to the default behaviour of building for generic systems.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1525

PostPosted: Sun Sep 25, 2022 7:55 am    Post subject: Re: Syntax questions about USE/VIDEO_CARDS flags Reply with quote

g3n0bus1 wrote:
In the make.default file

I'm not aware of the existence of such a file
g3n0bus1 wrote:
Question 1:
If I want to enable ALL of flags and video cards, Can I use like this?
Code:

# I am lazy to write each flags!!
USE="*"

# I wanna build the OS for many kinds of amd64-generic boards, but I don't know about each video cards!!
VIDEO_CARDS="*"

Is this technically possible?
Is this good way to build the OS for many kinds of amd64-generic boards?

No and no.

g3n0bus1 wrote:

Questions 2:
For USE flags, I can get the informations from equery.
example:
Code:

 $ equery-amd64-generic uses mesa

However how can I know about each video card flags, such as intel/llvmpipe/nouveau/radeon?


See the manual page of make.conf, more specifically the FILES section.
There are commands also, I think in gentoolkit.
EDIT: see the reply above mine for a command you can use.
Another way is to use equery uses <package> and inspect the output.

Regards,
Georgi
Back to top
View user's profile Send private message
g3n0bus1
n00b
n00b


Joined: 18 Jan 2021
Posts: 11

PostPosted: Sun Sep 25, 2022 1:45 pm    Post subject: Reply with quote

psycho wrote:
Hi g3n0bus1.

There's no need to specify "*" USE flags explicitly because just leaving things alone defaults to whatever flags your profile has enabled. It would defeat the purpose of manual control over build choices via USE flags to say "yes please" to everything (even potentially conflicting choices)...the best lazy option is just to leave things alone apart from the specific flags you want to change.

For seeing what's being used in your system, euse is handy. You can
Code:
euse --info
to see an overview of everything, or e.g.
Code:
euse -i nvidia
to get a summary of the packages affected by a specific flag.

I'm not sure that I'm understanding your question about amd64 generic boards. If you're talking about the CFLAGS for amd64 processors, again it's a case of leaving things alone if you want the generic options. If you follow the handbook's suggestion of "-march=native" you will build things specifically for your own processor, which means you won't be able to copy the binaries across to whatever other machines (with different processors) you want. Getting rid of that "-march=native" will revert to the default behaviour of building for generic systems.


Thank you for your advices.
But unfortunately euse command is not supported in my environment (It's not a genuine Gentoo).
Is there other ways to check the name of VIDEO_CARDS flags? (or plz recommend me some specified documents)
What I know is only these 4.
Code:

VIDEO_CARDS="intel llvmpipe nouveau radeon"

I want to add many video cards as possible for higher HW compatibility.
Back to top
View user's profile Send private message
psycho
Guru
Guru


Joined: 22 Jun 2007
Posts: 534
Location: New Zealand

PostPosted: Sun Sep 25, 2022 11:56 pm    Post subject: Reply with quote

Many of them are ancient and/or rare, so there'd be little point in building support for them... but if you want a list of VIDEO_CARDS options you can see them here:

https://packages.gentoo.org/useflags/video_cards_vesa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum