I am afraid most discussions here miss the point. Fortunately, many of the new 'IoT' embedded designs are open sourced: for instance, BeagleBone, which is an improved version of RasPi, publishes its design and manufacturing data, and invites imitations. THe problem is scale: Beaglebone costs $50 because of the price breaks on PCB and component cost that result from its volume (multiples of 1e5 units). Some people tried to source small variations of BeagleBone Black, and were quoted cost several times higher.
This is the problem Brazil faces: given their market size, what is the realistic production run size? BBB folks could take a risk and spin up a 100,000 unit production run. A Brazilian version would stand a risk of either assuming conservative production run (5000 units, which still is an investment of nearly half million dollars) and pricing itself out of the market, or going for broke and spinning up a 50,000 run---an investment of several million dollars that could go bad if the market wasn't there.