[coreboot] how to delete symbol link created at compile time

Marc Jones marcj303 at gmail.com
Sun Oct 16 10:10:56 CEST 2011


On Fri, Oct 14, 2011 at 3:26 PM, Stefan Reinauer
<stefan.reinauer at coreboot.org> wrote:
> * Marc Jones <marcj303 at gmail.com> [111014 06:22]:
>> On Thu, Oct 13, 2011 at 3:19 AM, She, Kerry <Kerry.She at amd.com> wrote:
>> > Hello,
>> >
>> >
>> >
>> > Some mainboard support more than one family of CPUs with same socket type,
>> >
>> > Such as SuperMicro/h8scm:
>> >
>> > http://www.supermicro.com/Aplus/motherboard/Opteron4100/SR56x0/H8SCM-F.cfm
>> >
>> >
>> >
>> > My implementation is the mainboard CPU type can be configured as family10 or
>> > family15 CPU.
>> >
>> > In order to eliminate the duplicated code, both configuration shares most of
>> > the platform code,
>> >
>> > but some code can’t be shared between different family of CPUs.
>> >
>> > Take devicetree.cb as an example,
>> >
>> > I have created 2 devicetree file :
>> >
>> > devicetree_f15.cb for platform with family 15 CPU
>> >
>> > devicetree_f10.cb  for platform with family 10 CPU
>> >
>> >
>> >
>> > I changed the makefile to create a symbol link “devicetree.cb” link to
>> > devicetree_f10.cb or devicetree_f15.cb at compile time.
>> >
>> > The problem is that I can’t delete the symbol link when make
>> > clean/distclean.
>
> Please fix the problem by using one device tree for both platforms.

Stefan,

Can you explain your thoughts on how that would work? Can we put a #if
in the devicetree.cb? It uses the c precompiler? It requires different
CPU files/device locations.  We can try it next week.

Marc

-- 
http://se-eng.com




More information about the coreboot mailing list