- cmd="lipo $${allarchs} -create -output $(SYMROOT)/$(*F).a"; \
- echo $$cmd; eval $$cmd; \
- cmd="install $(LIB_INSTALL_FLAGS) $(SYMROOT)/$(*F).a $@"; \
+ $(_v)if [ $(MACHINE_CONFIG) = DEFAULT ] ; then \
+ allarchs=""; \
+ for onearch in $(INSTALL_ARCHS); do \
+ archdir=$(OBJROOT)/$(KERNEL_CONFIG)_$${onearch}/$(COMPONENT); \
+ if [ -e $${archdir}/kmod/$(*F).a ]; then \
+ allarchs="$${allarchs} $${archdir}/kmod/$(*F).a"; \
+ fi; \
+ done; \
+ cmd="$(LIPO) $${allarchs} -create -output $(SYMROOT)/$(*F).a"; \
+ echo $$cmd; eval $$cmd; \
+ else \
+ my_counter=1; \
+ my_innercounter=1; \
+ outputfile=$(SYMROOT)/$(*F).a; \
+ for my_config in $(TARGET_CONFIGS_UC); do \
+ if [ $${my_counter} -eq 1 ]; then \
+ my_counter=2; \
+ my_kconfig=$${my_config}; \
+ elif [ $${my_counter} -eq 2 ]; then \
+ my_counter=3; \
+ my_aconfig=$${my_config}; \
+ else \
+ my_counter=1; \
+ inputfile=$(OBJROOT)/$${my_kconfig}_$${my_aconfig}_$${my_config}/$(COMPONENT)/kmod/$(*F).a; \
+ if [ -e $${inputfile} ]; then \
+ if [ $${my_innercounter} -eq 1 ]; then \
+ my_innercounter=2; \
+ cmd="$(LIPO) -create $${inputfile} -o $${outputfile}"; \
+ else \
+ cmd="$(LIPO) -create $${outputfile} $${inputfile} -o $${outputfile} || true"; \
+ fi; \
+ echo $$cmd; eval $$cmd; \
+ fi; \
+ fi; \
+ done; \
+ fi; \
+ cmd="$(INSTALL) $(LIB_INSTALL_FLAGS) $(SYMROOT)/$(*F).a $@"; \