Take two matrices $A,B \in \mathbb{R}^{n\times n}$. I am considering the generalized eigenvalue problem ($\gamma \in \mathbb{R}, \phi \in \mathbb{R}^n$)
$$A\phi = \gamma B\phi.$$
Is there a systematic way of modifying the matrix $B$ such that $\phi$ acquires desired properties?
I have a specific example in mind: let $n=4m$ and require $\phi$ to be in the m-fold product of the unit sphere in $\mathbb{R}^4$, i.e. when $\phi$ is chopped into blocks of 4 entries, these vectors each have Euclidean norm 1.
For a fixed $A\in GL(n)$, can one construct a diagonal matrix $B$ such that there exists an eigenpair $(\gamma,\phi)$ with the desired property on $\phi$?