opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

gen.lua (684B)


      1 local function probe(var)
      2 	build('probe', '$outdir/'..var, {'$dir/'..var, '|', '$basedir/scripts/probe.sh'}, {var=var})
      3 end
      4 
      5 probe('HAVE_EMMINTRIN_H')
      6 probe('HAVE_IMMINTRIN_H')
      7 probe('HAVE_INLINE_ASM')
      8 probe('HAVE_MMINTRIN_H')
      9 probe('HAVE__MM_MOVEMASK_EPI8')
     10 probe('HAVE__THREAD_LOCAL')
     11 probe('HAVE___BUILTIN_ASSUME_ALIGNED')
     12 probe('HAVE___BUILTIN_CHOOSE_EXPR')
     13 probe('HAVE___BUILTIN_CLZ')
     14 probe('HAVE___BUILTIN_CTZL')
     15 probe('HAVE___BUILTIN_POPCOUNT')
     16 probe('PIC')
     17 
     18 local function probesize(var)
     19 	build('probe-size', '$outdir/'..var, {'$dir/'..var, '|', '$basedir/scripts/probe-size.sh'}, {var=var})
     20 end
     21 
     22 probesize('SIZEOF_LONG')
     23 probesize('SIZEOF_SIZE_T')
     24 probesize('SIZEOF_TIME_T')