since we are adding swap - we don't need to remove optimisation from the Makefile for 256M pi's. It wasn't working
anyway since the default cflags for retropie-setup add -O2
added function to add/remove swap for building packages that need additional without messing with the users system dphys-swapfile config.
has a limit parameter so you can add swap if system ram is less than a chosen value
changed - unlikely that we need a swapfile for fbalibretro - removing the -j4 should suffice
use physical and swap space in memory calulation for adding additional swap. No need to add swap if the user already has plenty
replace previous swap on/off with the new code. the "limits" might need tweaking. But hopefully we can find a balance between
the need to add additional swap based on the users machine and existing swap set up.
changed: use megabytes for both rpSwap memory parameters
we will add swap if memory is less than the limit, not less or equal
fixed duplicate files passed to sed in jzintv
jzintv also suffered from the updates to the raspbian linker - added libm to linker flags
Merge pull request #513 from petrockblog/memory

Memory/swap changes
fixed - left over pushd after memory/swap changes