Please run the following command to build Linux Kernel image with GPIO driver enabled.
$ make nxp_ls1021atsn_defconfig
$ make linux-menuconfig
Configure Linux Kernel as the following.
Device Drivers --->
-*- GPIO Support --->
[*] /sys/class/gpio/... (sysfs interface)
Memory mapped GPIO drivers --->
[*] MPC512x/MPC8xxx/QorIQ GPIO support
$ make linux
Please modify rcw file in output/build/qoriq-rcw/git/ls1021atsn/SSR_PNS_30/, then run the following command to rebuild RCW.
$ make host-qoriq-rcw-rebuild