aboutsummaryrefslogtreecommitdiffstats
path: root/include/package-defaults.mk
Commit message (Expand)AuthorAgeFilesLines
* include/package-defaults.mk: fix default Build/Prepare with empty ./srcMatthias Schiffer2018-03-071-1/+1
* build: cleanup SSP_SUPPORT configure optionJulien Dusser2018-01-271-1/+1
* build: allow defining license information per binary packageMichael Heimpold2017-11-251-0/+2
* build: reset ALTERNATIVES field in Package/DefaultYousong Zhou2017-05-031-0/+1
* include/packages-defaults.mk: Remove LARGEFILE optionDaniel Engberg2017-04-261-1/+0
* build: copy contents of 'src' folder to build dirs (if present)Alexandru Ardelean2016-10-151-0/+1
* build: use CXXFLAGS if definedHauke Mehrtens2016-10-131-1/+1
* cmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree b...Luke McKee2016-07-291-1/+1
* include: remove now unused PACKAGE_SUBDIR variableJo-Philipp Wich2016-04-131-1/+0
* include: group kmod ipk files into a "kernel" subdirectoryJo-Philipp Wich2016-01-241-0/+1
* gcc/musl: rework SSP-supportSteven Barth2015-06-221-1/+1
* package-defaults: remove libssp for musl (redundant)Steven Barth2015-06-201-1/+1
* include: remove trailing whitespacesLuka Perkov2015-03-291-1/+1
* package-defaults.mk: set DISABLE_NLS only if not CONFIG_BUILD_NLSJohn Crispin2015-03-211-1/+5
* build: add optional dependency on libssp to all non-kernel packagesFelix Fietkau2015-03-201-1/+1
* toolchain: The glorious return of glibc, ver 2.21John Crispin2015-03-121-1/+1
* build: add support for declaring package CONFLICTS which only affect selectin...Felix Fietkau2014-10-051-0/+1
* build: allow packages with build variants to explicitly select a default variantFelix Fietkau2014-09-231-0/+1
* include: remove file before overwritting it with replace_scriptJohn Crispin2014-09-151-1/+3
* include: add a meta data field for required system user:groupJohn Crispin2014-09-111-0/+1
* build: remove check to nonexistant CONFIG_ENABLE_LOCALE variable and move DIS...Felix Fietkau2014-03-211-0/+1
* build: allow packages to declare ABI versions to detect necessary package reb...Felix Fietkau2014-02-231-0/+1
* build: reduce the size of package metadata a bit to keep package list files s...Felix Fietkau2012-12-221-1/+0
* build: remove the default useless MAINTAINER valueFelix Fietkau2012-12-221-2/+0
* build: allow the package maintainer info to be specified globally for a sourc...Felix Fietkau2012-10-081-1/+3
* build: add the + token to any commands that can pass through the jobserver, f...Felix Fietkau2012-09-231-1/+1
* make packages depend on +librt and +libpthread by default if eglibc is in useJo-Philipp Wich2012-09-191-1/+3
* build: add a dependency on libc to all non-kernel packagesFelix Fietkau2012-06-101-0/+6
* build: remove redundant call to $(SH_FUNC) (#8042)Felix Fietkau2012-03-051-1/+1
* build: add TARGET_CXXFLAGS and EXTRA_CXXFLAGS, defaulting to *_CFLAGS via laz...Felix Fietkau2012-03-011-2/+4
* add support for hidden packages that get selected/built but do not show up in...Felix Fietkau2011-07-021-0/+1
* add a new package metadata variable MDEPENDS for specifying local menuconfig ...Felix Fietkau2011-04-051-0/+1
* add support for flagging packagesJo-Philipp Wich2010-10-021-0/+5
* Implement an ARCH_PACKAGES variable which defaults to BOARD but can be overri...Jo-Philipp Wich2010-09-121-3/+3
* speed up the build system by including include/shell.sh on shell commands onl...Felix Fietkau2010-08-191-1/+1
* Support parallel build of certain packagesMichael Büsch2010-08-181-1/+1
* The attached patch replaces $(1) install by $(if $(1), $(1), install) in the ...Travis Kemen2010-03-051-1/+1
* build system: introduce a new feature called build variants. it allows buildi...Felix Fietkau2009-11-101-0/+1
* add special handling for the adm5120 target, which uses subtargets for differ...Imre Kaloz2009-08-031-1/+5
* revert 17050 this was not the right way to fix thisFlorian Fainelli2009-08-011-3/+3
* use board names instead of arch in packagesImre Kaloz2009-07-311-1/+1
* move the global ipv6 option to the very bottom of the options passed to confi...Florian Fainelli2009-07-301-3/+3
* globally define IPv6 support or not in OpenWrt, just like for largefiles, ipv...Florian Fainelli2009-07-251-1/+3
* Fix configure script path when not at the root of $(PKG_BUILD_DIR), thanks Da...Florian Fainelli2009-07-021-1/+1
* add dist and distcheck target (to create new source balls)Ralph Hempel2009-05-311-1/+9
* remove 2 old interfering variables, probably missed from [15299]Nicolas Thill2009-04-221-2/+0
* move pkg config stuff to per-target exports to prevent interference with host...Felix Fietkau2009-04-201-3/+0
* replace a few unnecessary $(shell) callsFelix Fietkau2009-03-031-1/+1
* initialize the url field for packagesFelix Fietkau2009-02-231-0/+1
* eliminate redundancy by creating the quilt_used stampfile in the right placeFelix Fietkau2009-02-221-1/+0
/span>) | (date.getHours() << 12) | (date.getDate() << 17) | ((date.getMonth() + 1) << 22) | ((date.getFullYear() - 2020) << 26); }, time_offset); return retval; } void watch_rtc_register_tick_callback(ext_irq_cb_t callback) { watch_rtc_register_periodic_callback(callback, 1); } void watch_rtc_disable_tick_callback(void) { watch_rtc_disable_periodic_callback(1); } static void watch_invoke_periodic_callback(void *userData) { ext_irq_cb_t callback = userData; callback(); resume_main_loop(); } void watch_rtc_register_periodic_callback(ext_irq_cb_t callback, uint8_t frequency) { // we told them, it has to be a power of 2. if (__builtin_popcount(frequency) != 1) return; // this left-justifies the period in a 32-bit integer. uint32_t tmp = frequency << 24; // now we can count the leading zeroes to get the value we need. // 0x01 (1 Hz) will have 7 leading zeros for PER7. 0xF0 (128 Hz) will have no leading zeroes for PER0. uint8_t per_n = __builtin_clz(tmp); // this also maps nicely to an index for our list of tick callbacks. double interval = 1000 / frequency; // in msec if (tick_callbacks[per_n] != -1) emscripten_clear_interval(tick_callbacks[per_n]); tick_callbacks[per_n] = emscripten_set_interval(watch_invoke_periodic_callback, interval, (void *)callback); } void watch_rtc_disable_periodic_callback(uint8_t frequency) { if (__builtin_popcount(frequency) != 1) return; uint8_t per_n = __builtin_clz(frequency << 24); if (tick_callbacks[per_n] != -1) { emscripten_clear_interval(tick_callbacks[per_n]); tick_callbacks[per_n] = -1; } } void watch_rtc_disable_all_periodic_callbacks(void) { for (int i = 0; i < 8; i++) { if (tick_callbacks[i] != -1) { emscripten_clear_interval(tick_callbacks[i]); tick_callbacks[i] = -1; } } } static void watch_invoke_alarm_interval_callback(void *userData) { if (alarm_callback) alarm_callback(); } static void watch_invoke_alarm_callback(void *userData) { if (alarm_callback) alarm_callback(); alarm_interval_id = emscripten_set_interval(watch_invoke_alarm_interval_callback, alarm_interval, NULL); } void watch_rtc_register_alarm_callback(ext_irq_cb_t callback, watch_date_time alarm_time, watch_rtc_alarm_match mask) { watch_rtc_disable_alarm_callback(); switch (mask) { case ALARM_MATCH_DISABLED: return; case ALARM_MATCH_SS: alarm_interval = 60 * 1000; break; case ALARM_MATCH_MMSS: alarm_interval = 60 * 60 * 1000; break; case ALARM_MATCH_HHMMSS: alarm_interval = 60 * 60 * 60 * 1000; break; } double timeout = EM_ASM_DOUBLE({ const now = Date.now(); const date = new Date(now + $0); const hour = ($1 >> 12) & 0x1f; const minute = ($1 >> 6) & 0x3f; const second = $1 & 0x3f; if ($2 == 1) { // SS if (second < date.getSeconds()) date.setMinutes(date.getMinutes() + 1); date.setSeconds(second); } else if ($2 == 2) { // MMSS if (second < date.getSeconds()) date.setMinutes(date.getMinutes() + 1); if (minute < date.getMinutes()) date.setHours(date.getHours() + 1); date.setMinutes(minute, second); } else if ($2 == 3) { // HHMMSS if (second < date.getSeconds()) date.setMinutes(date.getMinutes() + 1); if (minute < date.getMinutes()) date.setHours(date.getHours() + 1); if (hour < date.getHours()) date.setDate(date.getDate() + 1); date.setHours(hour, minute, second); } else { throw 'Invalid alarm match mask'; } return date - now; }, time_offset, alarm_time.reg, mask); alarm_callback = callback; alarm_timeout_id = emscripten_set_timeout(watch_invoke_alarm_callback, timeout, NULL); } void watch_rtc_disable_alarm_callback(void) { alarm_callback = NULL; alarm_interval = 0; if (alarm_timeout_id != -1) { emscripten_clear_timeout(alarm_timeout_id); alarm_timeout_id = -1; } if (alarm_interval_id != -1) { emscripten_clear_interval(alarm_interval_id); alarm_interval_id = -1; } } /////////////////////// // Deprecated functions void watch_set_date_time(struct calendar_date_time date_time) { watch_date_time val; val.unit.second = date_time.time.sec; val.unit.minute = date_time.time.min; val.unit.hour = date_time.time.hour; val.unit.day = date_time.date.day; val.unit.month = date_time.date.month; val.unit.year = date_time.date.year - WATCH_RTC_REFERENCE_YEAR; watch_rtc_set_date_time(val); } void watch_get_date_time(struct calendar_date_time *date_time) { if (date_time == NULL) return; watch_date_time val = watch_rtc_get_date_time(); date_time->time.sec = val.unit.second; date_time->time.min = val.unit.minute; date_time->time.hour = val.unit.hour; date_time->date.day = val.unit.day; date_time->date.month = val.unit.month; date_time->date.year = val.unit.year + WATCH_RTC_REFERENCE_YEAR; } void watch_register_tick_callback(ext_irq_cb_t callback) { watch_rtc_register_tick_callback(callback); }