title: How to make DKMS pass the right ARCH to 'make'?
body: <p>I'm trying to use DKMS to build a module. My problem is that I cannot seem to make DKMS pass the right ARCH to 'make'. It keeps using the architecture of the my OS's kernel which is armv7l. But there's no map<br>
  /usr/src/linux/arch/armv7l<br>
  It needs to look inside<br>
  /usr/src/linux/arch/arm</p>
  
  <p>I have tried passing -a arm,  -k 4.4.21-v7+/arm as arguments to 'dkms build', but it doesn't pass that down to 'make'. Adding BUILD_EXCLUSIVE_ARCH="arm" to /usr/src/rtl8812AU-4.3.14/dkms.conf also makes no difference.</p>
  
  <blockquote>
    <p><strong>sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION} -k 4.4.21-v7+/arm</strong>  </p>
    
    <p>Kernel preparation unnecessary for this kernel.  Skipping...  </p>
    
    <p>Building module:<br>
    cleaning build area....<br>
    'make'....(bad exit status: 2)<br>
    Error! Bad return status for module build on kernel: 4.4.21-v7+ (arm)<br>
    Consult /var/lib/dkms/rtl8812AU/4.3.14/build/make.log for more information.  </p>
    
    <p><strong>cat /var/lib/dkms/rtl8812AU/4.3.14/build/make.log</strong></p>
    
    <p>DKMS make.log for rtl8812AU-4.3.14 for kernel 4.4.21-v7+ (arm)<br>
    Thu Sep 29 16:36:07 UTC 2016<br>
    make <strong>ARCH=armv7l</strong> CROSS_COMPILE= -C /lib/modules/4.4.21-v7+/build M=/var/lib/dkms/rtl8812AU/4.3.14/build  modules<br>
    make[1]: Entering directory '/usr/src/linux'<br>
    Makefile:606: arch/armv7l/Makefile: No such file or directory<br>
    make[1]: No rule to make target 'arch/armv7l/Makefile'.  Stop.<br>
    make[1]: Leaving directory '/usr/src/linux'<br>
    Makefile:1576: recipe for target 'modules' failed<br>
    make: [modules] Error 2  </p>
  </blockquote>
  
  <p>How to solve this?<br>
  Thank you already</p>