Since this is just an API, have you tried just moving the files from the generated section into headers and source folders in the project then change the Device and delete the then incompatible component? I would think the code will still work fine. Worth a try anyhow...
Thanks for your answer.
Wat I wonder is why, if I copy the block in my project the schematic tag the ee-prom as incompatible. If it's a bug, I go and try you proposal. What if I corrupt the chip?
Quite difficult to corrupt the PSoC chip. Worst that may happen is that your project does not run as expected. Have a look into the "System Reference Guide" (from Creator Help) and look for restrictions of flash writing for your chip.
Check the flash write code example too.